[NEW] Shop System

So I’ve created a system where instead of using the leaderboard cash, you’ll be using it the money provided in the screen.

https://gyazo.com/cb164f85b1525bc74c37193d51eb29f6

game.Players.PlayerAdded:Connect(function(player) -- When a player joins the game
	local value = Instance.new("NumberValue", player)-- Makes a value for the player
	value.Name = "Currency"-- Gives it a name (Change this to what you want)
	
	
	while wait(60) do
		value.Value = value.Value + 50
	end
end)

Now, I want to make the shop system. Because all the shop system I see is always using the leaderboard cash system, but I don’t know how to. If anyone can give me tips, tutorials, etc. to make one, I appreciate it

1 Like

I’d recommending running that loop outside of the playeradded event and use only one loop for adding currency if any.

1 Like

This should do the trick! Basic tutorial for beginners.

Planning to renovate/redo this in future vid. So stay tuned. It will be much better.

2 Likes

If the shop systems you see use leaderboard cash, presumably player.leaderstats.Cash.Value, it would literally be the same system except you’d be referencing player.Currency.Value instead. If you have only changed where the money is stored, that is all you’d have to update. If you need an example code to demonstrate this let me know.

1 Like

Wow Twin, didn’t expect a Youtuber to reply my post. But, thanks.

2 Likes

Thanks for the help. @alphadoggy111 @TwinPlayzDev @OPPEYRADY

1 Like