What I'm trying to do is make a gui that'll display the value of a NumberValue in ServerStorage, and since they're on the client and the other's on the server respectively, I need to do some fancy things with RemoteFunctions to make it work. I got some code from the wiki and spliced it together with what I need, and now the function isn't even running when a player is added.
A little more info: The game isn't the start place and it's in a normal script parented to a NumberValue under ServerStorage. I already checked, and script.Disabled = false.
game.Players.PlayerAdded:connect(function(player)
player:WaitForChild("Backpack")
local event = Instance.new("RemoteEvent")
event.Parent = player.Backpack
event.Name = "RoomChanged"
end)
script.Parent.Changed:connect(function(Property)
local NewNumber = script.Parent[Property]
game.Workspace.RoomChanged:FireClient(NewNumber)
end)

1 comment
It's because the script is in server storage that it will not work!