01 | LocalScript = "WaterWheel" |
02 | LocalScript 2 = "Whirlpool" |
03 |
04 | function boop(Player) |
05 | if not Player.StarterGui:FindFirstChild(LocalScript) and (LocalScript 2 ) then |
06 | local Tool = game.ServerStorage [ LocalScript ] :clone() |
07 | Tool.Parent = Player.StarterGui |
08 | local Tool = game.ServerStorage [ LocalScript 2 ] :clone() |
09 | Tool.Parent = Player.StarterGui |
10 | end |
11 | end |
12 | script.Parent.ClickDetector.MouseClick:Connect(boop) |
that appears because the folder that holds GUIs in a player object is called:
PlayerGui
evrything in StarterGui
is cloned to PlayerGui
folder when a player enters the game.