I am making a fighting game like u wait 30 seconds then everyone get warp to a fighting arena. so yea I need help with like you have a specific amount of wins and there are characters and u click on them to buy them and then once u select them u get warped in the arena with that character I need help with it idk where my script for it …
Try
local winsNeeded = 10 -- amount of coins you need
character.ClickDetector.MouseClick:Connect(function(player) -- this fires when player clicks a clickdetector in the character
if player.Coins.Value >= coinsNeeded then -- checks if the player has enough wins
player.Character:MoveTo(position_in_the_map) -- moves the player
end
end)
Something like this, perhaps?
no it morphs you to the character then u g et tp to the map
Well, the basic if statement is there:
if player.Coins.Value >= coinsNeeded then
Just use this in most cases.