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

4 comments

0

What are you trying to archive?

0

a sell pad

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.

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