This script is triggered by remote event and when it does, it sends the amount to the client. Notice that it cant get the client's stats and I do not know why. I'm trying to get the 'Stolen' stats and show it as definition on the text label in startergui made with frame by me. Output telling me it's happening at line 3 'local leaderstats = client.stats'
How to resolve this issue? Thanks
game.ReplicatedStorage.NoticeRecall.OnClientEvent:Connect(function(client)
local leaderstats = client.stats
local gold = leaderstats.Stolen
local frame = script.Parent.Frame
local text = frame.Label
frame.Visible = true
text.Text = "You received: "..gold
wait(5)
frame.Visible = false
end)

1 comment
Thank you so much for the help, but i really dont get why i need to pass the argument 2 times?