How to make 1 Coin cost 100 Diamonds?

I wanna make it so if they sell like 2 coins it gives them 200 diamonds or if they sell 3 it gives them 300

local function give(amount)
	
end

local function sell(amount)
	if amount == 2 then
		give(200)
	end
end
1 Like

@IProgramForFun no but what if they have more than 2 coins? meaning i dont have to manually put their coinz

1 Like
local function sell(amount)
	give(amount * 100)
end
4 Likes

It depends on how your game is scripted. If the user has more than 2 coins you can do >=:

local function give(amount)
	
end

local function sell(amount)
	if amount >=2 then
		give(200)
	end
end