Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

PlayerToHideFrom in BillboardGuis?

Asked by 9 years ago

Does the PlayerToHideFrom property allow turple values?

for example;

for i,v in next, game.Players:GetPlayers()
    if v.Name ~= player.Name then
        gui.PlayerToHideFrom = v --hides for every single player
    end
end
0
By turple values I mean multiple values devQuestions 25 — 9y
2
@devQuestion, please do not swear in scriptingHelpers. woodengop 1134 — 9y

1 answer

Log in to vote
3
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

The PlayerToHideFrom property takes in a userdata, the player you want to hide the gui from. You cannot set this value to multiple values.. it will just overwrite it. What you're doing, by iterating through all the players is going to make it so the last player gets the gui hidden from, no one else.

3
Anytime. Goulstem 8144 — 9y
0
Requesting flaggable comments drew1017 330 — 9y
Ad

Answer this question