local cash = Instance.new("IntValue") cash.Name = "Cash" cash.Value = 0 local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(newPlayer.Name) if cashmoney ~= nil then cashmoney.Changed:connect(function() cash.Value = cashmoney.Value end) end
This is my script for having a leaderboard with cash on it, and it starts with 0, and also its a tycoon game. How do i make it so that if any player touches a certain part, somewhere in the middle of the map, it adds cash to their leaderboard?
https://www.youtube.com/watch?v=rWbQ0x-Xjj4
i Highly recommend watching this video it tells you how to make a leaderboard,give cash every 1 sec (like a actual tycoon game),tells you how to give cash when you touch a brick
don't skip through to find the part where he tells you how to add cash its best you watch the tutorial twice and get to the point where you can write the script without looking at the video so when need to something besides adding cash you know how to do it