script.Parent.Touched:connect(function(player)
if player.Parent and game.Players:FindFirstChild(player.Parent.Name) then
player.Parent.Character:MoveTo(game.Workspace.TeleportTG.Position)
end
end
end)
When using the Touched events, you have to specify and add checks to make sure the "Player" is an actual player because touching it with limbs will only check the limb's name. |