local money = script.Parent:WaitForChild("money").Value
function payout(plr)
local plrname = (plr.Name)--this is for later when the tycoon gets the name from the owner door
local srvrmoney = game.Players[plrname]:FindFirstChild(leaderstats.money.Value)--might have to be changed to waitforchild idk yet
if plr.Name == "macabe55101" then
srvrmoney = money
end
end
game.workspace.moneygiver.Touched:connect(payout)
this is the best I have so far I think I messed up with the syntax needed on line 1... Im trying to transfer the value of a intvalue to another in a player in leaderstats once the game is run.

6 comments
also line 5 will be changed to be whichever player owns the tycoon, but that's besides the point
define 'money' inside the function. Otherwise it will be the same number everytime.
money is a intvalue place holder
bump plez halp sermone
Maybe it has something to do with srvrmoney. srvrmoney is the value of the money and when you are changing it later on in the function it is changing the variable value and not the IntValue Value
Correct me if i'm wrong...