Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a money script that only gives money when you join a team?

Asked by
vam0no -10
7 years ago

So lately ive been making a city game and I want to make it so you get money once you join a team, or job. Heres what I got:

script.Name = "Leaderboard"

game.Players.PlayerAdded:connect(function(p)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
stats.Parent = p

Instance.new("IntValue",stats).Name = "Money"
Instance.new("IntValue",p).Name = "Tycoon"
end) 


0
If you even want to get help from your free-modeled scripts, at least learn from somewhere how to script, and then try it. Even I can do it, but not helping, because this is a helping site, not a request site. Jxemes 75 — 7y

1 answer

Log in to vote
0
Answered by
kmar_yt -2
4 years ago
Edited 4 years ago

script.Name = "leaderstats" try this

Ad

Answer this question