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)
✓ ANSWER ACCEPTED
StarterGui is not a valid member of Player?
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.

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