Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this remote event script deciding not to work?

Asked by 7 years ago
Edited 7 years ago
script.walletval.OnServerEvent:connect(function(player)
    while true do
    wait(0.5)
    txt = player.PlayerGui.Gui.Wallet
    val = script.Parent.Parent.Data.Wallet

    txt.Text = "I have " .. val.Value
end
end)

this is a remotevent that is meant to say the amount of cash someone has. For some reason it isn't working when fired and is showing no errors.

0
You should generally use local scripts for GUI manipulation Disillusions 61 — 7y
0
Changed it to local and it still doesn't work. shankable 9 — 7y

Answer this question