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

how to make curency like ("Money") without using a leaderboard and can still buy things?

Asked by 6 years ago

if anyone knows please leave a reply! :) thanks

0
You could always make a large table and store player data during the game on the table, and save their data to a datastore once they leave. Troidit 253 — 6y

1 answer

Log in to vote
0
Answered by
phxtn 154
6 years ago
Edited 6 years ago

This is very easy.

Heres the script.

-- script in ServerScriptService

game.Players.PlayerAdded:Connect(function(plr)
local Stats = Instance.new("Folder")
Stats.Parent = plr
Stats.Name = "Stats"
local Money = Instance.new("NumberValue")
Money.Parent = Stats
Money.Name = "Money"
Money.Value = 4093204324

**In what I think, If you don't name the variable leaderstats, it would not show on the leaderboard. That is what happened to me a few weeks ago when I wrote Stats instead of leaderstats like I usually do. **

Hope this helped. xD

-PhotonLightning

Ad

Answer this question