When I try to make this filtering enabled script for the players number of gold to load. The number stays at 0 (The text I set it to by default)
Script inside the TextLabel displaying the players amount of gold:
text = script.Parent.Text
game.ServerStorage.loadGold:FireServer(text)
The script inside StarterPlayerScripts controlling the RemoteServer:
plr = game.Players.LocalPlayer
function loadGold(text)
while true do
wait(0.1)
text = plr.Stats.Gold.Value
end
end
game.ServerStorage.loadGold.OnServerEvent:connect(loadGold())
