Recently I've moved onto using modules to store data instead of IntValues etc, this meant i had to rework the entire game again. My script works in Play mode in studio, but when i test it in a local server it does not work.
The server script recognises the points to be awarded and gives it.
playerdata["ToConvert"] = playerdata["ToConvert"] + math.floor(magnitude)
print("server side fire "..playerdata["ToConvert"])
events.UpdateToConvertGui:FireClient(player)
and the server prints "server side fire 34234", but when i try to relay it through the client with the code of
local function toconvertupdategui(money)
print("client side fired "..playerdata["ToConvert"])
gui.Main.Game.Currency.ToConvert.Text.Text = "("..playerdata["Stats"][2].."%) "..playerdata["ToConvert"]
end
events.UpdateToConvertGui.OnClientEvent:Connect(toconvertupdategui)
it prints "client side fired 0", the client script does not recognise it during play mode, but not in test mode or real server.

1 comment
Can you please post the full script, because we also need to know the references for playerdata.