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

How do i make i game currency but i dont get it on roblox wiki?

Asked by 7 years ago

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

0
This isn't a request website. Check the community guidelines. SulaymanArafat 230 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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.

0
I dont know how to csript kylewhit65 0 — 7y
Ad

Answer this question