Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

StarterGui is not a valid member of Player?

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)

1 comment

0

i'm trying to give player a skill and this happens

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.