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

Why is this only working in studio?

Asked by 9 years ago

This works in studio, but when I go into a actual server and check the console it says ""Pieces" is not a valid member of "ServerStorage"", this is in a tool, is this the reason it doesnt work, please explain/help me understand why this wont work..

local pieces = game:GetService("ServerStorage").Pieces
0
Most likely it's telling the truth -- has another script, possibly another tool or the same tool before, something deleted `Pieces`? From Test, you can run a server on your computer and look at ServerStorage in the explorer. BlueTaslem 18071 — 9y
0
Alternatively -- Is this a LocalScript? LocalScripts cannot access the contents of `ServerStorage`. Use ReplicatedStorage instead if it needs to be accessed by LocalScripts. BlueTaslem 18071 — 9y

Answer this question