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
LocalScript = "WaterWheel"
LocalScript2 = "Whirlpool"

function boop(Player)
 if not Player.StarterGui:FindFirstChild(LocalScript)and(LocalScript2) then
  local Tool = game.ServerStorage[LocalScript]:clone()
  Tool.Parent = Player.StarterGui
 local Tool = game.ServerStorage[LocalScript2]:clone()
  Tool.Parent = Player.StarterGui
 end
end
script.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