Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Rejoin Teleport Kicks Me?

Asked by 5 years ago
wait() game:GetService("TeleportService"):Teleport(game.PlaceId, Player)
if Player.Character then
Player.Character:Remove()
end

This kicks me when I rejoin. I know ROBLOX has a built-in system which kicks loop-teleports to stop botting visits, but this only goes once.

0
The possible cause may be the "Player.Character:Remove()" Rinextel 291 — 5y
0
Still doesn't work. Chaddaking 60 — 5y
0
why are you using :Remove() and not :Destroy()? Mr_Unlucky 1085 — 5y

1 answer

Log in to vote
0
Answered by
Rinextel 291 Moderation Voter
5 years ago

A common mistake is Remove and Destroy. Try this:

    wait() 
game:GetService("TeleportService"):Teleport(game.PlaceId, Player)
    if Player.Character then
    Player.Character:Destroy()
end

https://www.robloxdev.com/api-reference/function/Instance/Remove https://www.robloxdev.com/api-reference/function/Instance/Destroy Go here for more information. Hope this helps!

Ad

Answer this question