Hello! I have a string value in Replicated Storage called 'Target' and it needs to be accessed by a server script. I use;
local Target = game.ReplicatedStorage.Target
In both scripts. It's changed in a script after a button is clicked and I used print to see if it really had changed, sure enough it returned the correct value after clicking the button. I then used the same print test in the server script and it could not find a value in Target at all. Are string Value's accessible? Have I set it up wrong? Should I use a WaitForChild()?
Well, when finding StringValues I usually use WaitForChild()
so try this;
If the script is in WorkSpace or ServerScriptService
local Target = game.ReplicatedStorage:WaitForChild("Target") print(Target.Value)
This will print the Target's value and you would know if it actually changed or not,