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

Teleport Service Crashes People?

Asked by 8 years ago
local TeleportService = game:GetService("TeleportService")


function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
        TeleportService:Teleport(54739220, player)
    end
end

script.Parent.Touched:connect(onTouched)

Whenever I touch the brick, it's in the process of teleporting, then it stops responding and I crash.

0
Try :TeleportToSpawnByName(placeid, "SpawnLocation", player) Replace SpawnLocation with another name if you want the player to spawn onto a specific spawn maquilaque 136 — 8y
0
I have no clue for the crash instead. maquilaque 136 — 8y
0
This is often a problem with the client (AKA, you). It will fix itself eventually, I believe. It has happened to me before, in different games. TheDeadlyPanther 2460 — 8y
0
I want to teleport to another game, not a spawn location @maquilage Willie3838 5 — 8y
View all comments (5 more)
0
I am having the same exact issue. When i check it out in studio it shows me this in the output. https://gyazo.com/53fb23dffdea62f6444f3fd607a43584 StoIid 364 — 8y
0
It teleports to the game and the spawn location IN the other game itsJooJoo 195 — 8y
0
How would I know the name? I'm using this for a rally place for a war clan. Willie3838 5 — 8y
0
The spawn location part is optional and has no effect on the teleporting part of it. TeleportService makes your client go unresponsive sometimes for some reasons. I blame roblox and their wonky rushed untested updates. StoIid 364 — 8y
0
bump Willie3838 5 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

The script you posted worked fine for me. I would like to point out that ROBLOX has some issues with their TeleportService and Games(such as reserving a server and teleporting players to places within the game).

0
Ah, thank you very much Willie3838 5 — 8y
Ad

Answer this question