New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

The Money Stat Is not Updating?

Asked by 8 days ago
Edited 7 days ago

I Updated The Code

script.Parent.Touched:connect(function(hit)

    local findhum = hit.Parent:FindFirstChild("Humanoid")

    if findhum then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)

player.leaderstats.Coins.Value = player.leaderstats.Coins.Value +  player.leaderstats.Strength.Value
player.leaderstats.Strength.Value = 0

end
end)

i cant seem to find any way around this problem

0
What are you trying to archive? XviperIink 83 — 8d
0
a sell pad UnforgivenJr3087 8 — 8d
0
I assume this is a Server Script (normal script) as LocalScripts doesn't work in the Workspace, which I assume is where this script is located, and then my answer is, ServerScripts can't change or even see what is inside a player's PlayerGui. Spjureeedd 66 — 7d
0
the serverscript can see the player data i can alter it but it wont update the values inside the script so it will never change UnforgivenJr3087 8 — 7d

Answer this question