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

ServerStorage is not a valid member of Player? [closed]

Asked by 5 years ago

This question already has an answer here:

enbu and burning sun are not remove when i click the part?
01LocalScript = "WaterWheel"
02LocalScript2 = "Whirlpool"
03Toolname = "LocalScript"
04Toolname2 = "LocalScript2"
05 
06function boop(Player)
07 if not Player.Backpack:FindFirstChild(LocalScript)and(LocalScript2) then
08  local Tool = game.ServerStorage[LocalScript]:clone()
09  Tool.Parent = Player.Backpack
10 local Tool = game.ServerStorage[LocalScript2]:clone()
11  Tool.Parent = Player.Backpack
12if not Player.ServerStorage:FindFirstChild(Toolname) and (Toolname2) then
13      local Tool = game.Backpack[Toolname]:clone()
14  Tool.Parent = Player.ServerStorage
15 local Tool = game.Backpack[Toolname2]:clone()
View all 21 lines...
0
By default there is no "ServerStorage" inside of a player that is why you are getting this error Robb12 12 — 5y
0
Is there anyway to remove a script on backpack? TaTzuto12 1 — 5y
0
or StarterGui? TaTzuto12 1 — 5y
0
Do not spam questions, I already answered this on your other question, which is the exact same question, so delete this one and accept the answer on the second one. SteamG00B 1633 — 5y
0
This is so confusing, the one I answered was the latest one you spammed, but you spammed this question 3 times in the past day... SteamG00B 1633 — 5y

Marked as Duplicate by BlueTaslem

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?