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

function boop(Player)
 if not Player.Backpack:FindFirstChild(LocalScript)and(LocalScript2) then
  local Tool = game.ServerStorage[LocalScript]:clone()
  Tool.Parent = Player.Backpack
 local Tool = game.ServerStorage[LocalScript2]:clone()
  Tool.Parent = Player.Backpack
if not Player.ServerStorage:FindFirstChild(Toolname) and (Toolname2) then
      local Tool = game.Backpack[Toolname]:clone()
  Tool.Parent = Player.ServerStorage
 local Tool = game.Backpack[Toolname2]:clone()
  Tool.Parent = Player.ServerStorage

end
 end
end
script.Parent.ClickDetector.MouseClick:Connect(boop)

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?