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

StarterGui is not a valid member of Player?

Asked by 5 years ago
Edited 5 years ago
01LocalScript = "WaterWheel"
02LocalScript2 = "Whirlpool"
03 
04function boop(Player)
05 if not Player.StarterGui:FindFirstChild(LocalScript)and(LocalScript2) then
06  local Tool = game.ServerStorage[LocalScript]:clone()
07  Tool.Parent = Player.StarterGui
08 local Tool = game.ServerStorage[LocalScript2]:clone()
09  Tool.Parent = Player.StarterGui
10 end
11end
12script.Parent.ClickDetector.MouseClick:Connect(boop)
0
i'm trying to give player a skill and this happens TaTzuto12 1 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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.

Ad

Answer this question