I've tried using Roblox wiki but I don't get what the is saying can someone give me an easier explanation on how to do it
COMMUNITY QUESTION
How do i make i game currency but i dont get it on roblox wiki?
1 answer
straight from the wiki:
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local money = Instance.new("IntValue") --We create a new IntValue
money.Name = "Money" --this is the name you want the leader-stat to be when it shows up in-game.
money.Value = 0 --this is the value of money the new player starts out with. To change this, you can add some more code (shown later)
money.Parent = leaderstats -- Set the money object as a child of the leaderstats object.
end)
This should make a leader board that can be used for currency then you just need to add or subtract numbers with whatever you want to do.
1 comment
0
I dont know how to csript
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This isn't a request website. Check the community guidelines.