Skip to content

Conversation

@Daimywil
Copy link
Contributor

@Daimywil Daimywil commented Nov 4, 2025

When running a studio playtest with multiple players, their userids will be negative and RunService:IsStudio() returns false. This fix handles those playtests correctly.

assert(player, "Bad player")

-- when testing with mock players in studio, their userids are negative
if player.UserId < 0 then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to add a check for RunService:IsStudio() since guests are historically considered negative userIds in case Roblox ever does this again.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was under the impression that returned false in local servers but I was wrong (its just team tests). I'll add that in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should just completely replace the negative userid checks with IsStudio checks?


if permissionLevel == PermissionLevel.ADMIN or permissionLevel == PermissionLevel.CREATOR then
return Promise.resolved(player.UserId == self._userId or RunService:IsStudio())
return Promise.resolved(player.UserId == self._userId or RunService:IsStudio() or player.UserId < 0)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, need a check if we're studio with the UserId check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants