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

Why will my Hide & Seek script not start?

Asked by
epoke466 100
3 years ago

I'm having a problem with this script, but I don't know where I went wrong...

01repeat
02    local P = 0
03    for i, player in print(game.Players:GetPlayers()) do
04        P = P + 1
05    end
06until P >= 2
07 
08local Players = {}
09 
10for i, player in pairs(game.Players:GetPlayers()) do
11    table.insert(Players, player.Name)
12end
13 
14local PlayerChosen = Players[math.random(1, #Players)]
15 
View all 86 lines...

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

You put the GUI inside the player's object. You have to put it in the PlayerGui.

Around line 29

1local Hider = game.Players:FindFirstChild(player)
2local Gui = script.PickerGui:Clone()
3Gui.Parent = Hider.PlayerGui

The PlayerGui folder is where all the GUI stuff of the player is located

0
Im Stupid, thanks! epoke466 100 — 3y
Ad

Answer this question