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

BoolValue doesn't exist in ServerStorage?

Asked by 3 years ago

Im trying to create a bool value so then another script can detect when an animation is playing. I stored the boolValue in ServerStorage but when i create a variable that references the boolValue, the output says boolValue does not exist in ServerStorage. Does anybody know why?

1 answer

Log in to vote
0
Answered by 3 years ago

If it's truly inside ServerStorage, you are probably using a local script calling for that object.

Local scripts cannot see what is inside ServerStorage and ServerScriptService, this is due to client and server boundaries as they cannot see the same thing.

To solve this, place your BoolValue within ReplicatedStorage which both the server and client can see or use a remote request to have the server look for you in ServerStorage.

0
Thanks! It works completely fine now. This is the first question i've ever posted, and the people who answer are amazing! packayee 13 — 3y
Ad

Answer this question