#Code only works once

4 messages · Page 1 of 1 (latest)

dense plover
#

sorry but you dumb?? @steep zodiac

#

you make canTeleport = false ??

#

but you can teleport only if its on true

unreal ermine
#
local telePart = script.Parent



local TeleportService = game:GetService('TeleportService')



local placeID = (i do have the id here)



local canTeleport = true



local function otherGame(otherPart)

    local player = game.Players:FindFirstChild(otherPart.Parent.Name)

    if player and canTeleport then

        TeleportService:Teleport(placeID, player)
    end
end
``` or once u set it to false u can add a task.delay(number, function() canTeleport = false  end)