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 4 months ago
Edited 4 months 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 298 — 4mo
0
a sell pad UnforgivenJr3087 17 — 4mo
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 151 — 4mo
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 17 — 4mo

Answer this question