Require special currency to teleport

okay thanks that will mean alot for me

becose i dont wanna start agian a new game becose i have to mutch already

Sorry it took more than 15 mins, :laughing: I was struggling with the stupidest and smallest errors to ever exist…
I feel so dumb but I’m done…lol
https://www.roblox.com/games/4818744744/Dev-0V-Demonstration

1 Like

the time that u where gone i made this
game.Players.PlayerAdded:connect(function(player)

local leaderstats = Instance.new("Folder",player)
leaderstats.Name = "leaderstats"

local points = Instance.new("IntValue" ,leaderstats)
points.Name = "points"

local exppoints = Instance.new("IntValue" ,leaderstats)
expoints.Name = "exppoints"

end)

i think you where understanding me wrong the teleporter needed an amount of multiplier but once they had that they did not need to pay it

You can do that by getting rid of the loss of 100 coins line

Edit: Explain

okay this helpes me to understand but my game is a little bit harder
edit i will show my script

game.Players.PlayerAdded:connect(function(p)

local stats = Instance.new(“NumberValue”, p)

stats.Name = “leaderstats”

local Money = Instance.new(“StringValue”, stats)

Money.Name = “Money”

Money.Value = 5

local Multiplier = Instance.new(“StringValue”, stats)

Multiplier.Name = “Multiplier”

Multiplier.Value = 1

local reb = Instance.new(“NumberValue”, stats)

reb.Name = “Rebirths”

reb.Value = 1

local u = Instance.new(“NumberValue”, stats)

u.Name = “Ultra”

u.Value = 1

local r = Instance.new(“NumberValue”, stats)

r.Name = “Reb”

r.Value = 1

local me = Instance.new(“NumberValue”,stats)

me.Name = “Mega”

me.Value = 1

local p = Instance.new(“NumberValue”,stats)

p.Name = “Prestige”

p.Value = 1

local up = Instance.new(“NumberValue”,stats)

up.Name = “UltraPrestige”

up.Value = 0

local l = Instance.new(“NumberValue”,stats)

l.Name = “Lives”

l.Value = 1

local lev = Instance.new(“NumberValue”, stats)

lev.Name = “Level”

lev.Value = 0

local money = Instance.new(“NumberValue”, stats)

money.Name = “Cash”

money.Value = 1

local multi = Instance.new(“NumberValue”, stats)

multi.Name = “Multi”

multi.Value = 1

local levc = Instance.new(“NumberValue”, stats)

levc.Name = “Levelc”

levc.Value = 0

local levm = Instance.new(“NumberValue”, stats)

levm.Name = “Levelm”

levm.Value = 0

local levr = Instance.new(“NumberValue”, stats)

levr.Name = “Levelr”

levr.Value = 0

local levu = Instance.new(“NumberValue”,stats)

levu.Name = “Levelu”

levu.Value = 0

local player = game.Players.Name

while true do

wait(0.1)

money.Value = money.Value + multi.Value

lev.Value = levc.Value + levm.Value + levr.Value + levu.Value

Money.Value = “$”…money.Value

Multiplier.Value = “x”…multi.Value

r.Value = reb.Value

p.Value = p.Value

if money.Value >= 100^levc.Value then

levc.Value = levc.Value + 0.0100000000000000000000000

end

if reb.Value >= 40^levr.Value then

levr.Value = levr.Value + 0.01000000000000000000000000

end

if multi.Value >= 20^levm.Value then

levm.Value = levm.Value + 0.010000000000000000000000000000

if u.Value >= 10^levu.Value then

levu.Value = levu.Value + 0.010000000000000000000000000000

end
i whant it be easyer
edit i whant it to be
money,multiplier,rebirth,ultra,mega

Keep it as it is, make it more neat and have some comments
--like this in your code to identify which is which..

Also, for each name you give to a currency value, that name name needs to be called not the variable you made in order to make the name(sounds confusing but read slow to understand better)

Edit: Is your question solved or do you need more help?

but what is this for
money.Value = money.Value + multi.Value

lev.Value = levc.Value + levm.Value + levr.Value + levu.Value

Money.Value = “$”…money.Value

Multiplier.Value = “x”…multi.Value

r.Value = reb.Value

p.Value = p.Value

if money.Value >= 100^levc.Value then

levc.Value = levc.Value + 0.0100000000000000000000000

end

if reb.Value >= 40^levr.Value then

levr.Value = levr.Value + 0.01000000000000000000000000

end

if multi.Value >= 20^levm.Value then

levm.Value = levm.Value + 0.010000000000000000000000000000

if u.Value >= 10^levu.Value then

levu.Value = levu.Value + 0.010000000000000000000000000000

It’s added different currency values together to form a new value.

Example:

--Example values;
cash.Value = 100
coins.Value = 200

coins.Value = coins.Value + cash.Value
--adds the coins value to the cash value to make a new coins value
-- the total value will be;
 coins.Value = 300

-- If you did the it the other way round, it would be like this
cash.Value = cash.Value + coins.Value
--adds the cash value to the coins value to make a new cash value
-- the total value will be;
 cash.Value = 300

is there somthing in this script that makes mega better ?

but in my script, there isn’t that boost mega right because mega is boosted but I don’t hµget how
edit I get that but in my script, there isn’t happening with the mega right?

You are so lost right now…
I will make the example game I created to what you might be wanting…
Give me 15 mins again lol

Edit: I won’t give up helping you…
Showing your game in studio will require team create and team create requires friends unless your game is made in a group and that’s a bunch of effort

wait cant i show you my game in roblox studio ?
edit yea and i cant put i to take for free becose people will steal it then
edit if you dint know its a button simulator

wait are you still here i will put the game online for a second
edit Ultimate Button Grinding Simulator - Roblox

tell when u have it so i can put it offline

Well this problem may be simple, enough:

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Leaderstats = Player.leaderstats.Coins.Value

if Leaderstats >= 250 then do
   print("Teleporting!")
   -- teleport the player to the location
end)

I already showed that and even made a game demonstration for it but is not what he/she wants…

1 Like

Oof sorry for the misunderstanding.