Getting string value not working

I have a string value in ServerStorage, which I am using to store the game’s version, so I can use that version anywhere. Inside a textlabel i have a localscript:

script.Parent.Text = game:GetService("ServerStorage"):FindFirstChild("GameVersion").Value

but when playing the game, the textlabel does not show the verison.

Are you using a Local Script or Server Script?

1 Like

Bingo, Change it to a Server Script, LocalScripts can’t access ServerStorage nor ServerScriptService, an alternative is to move the Version to ReplicatedStorage if you wish to still use a LocalScript.

1 Like

I have a UI stored in ReplicatedStorage which I clone from a localscript, this script does not work inside that ui

Does it clone on PlayerAdded Instantly?

Edit: If yes, Move it to StarterGui