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

How do I teleport a player to another part of the map?

Asked by 7 years ago

Hello! I recently started making a game (which won't be popular but with my friends and the forums I can get a few visits on it). I'm trying to make a place to test some sort of map system (like more games has). I can't use place teleporters like in AR because I don-t have OBC and as far as I understand, the place you assign to the teleporter must be active. Any idea how I can make that? Thanks!

1 answer

Log in to vote
0
Answered by 7 years ago
function touch(hit)
    if hit.Parent:FindFirstChild("Humanoid") ~= nil then
        char = hit.Parent
        char.Torso.CFrame = workspace.Part.CFrame * CFrame.new(0, 0, 0) -- Part is the part you want the character to be teleported to.
0
Forgot to end it then put script.Parent.Touched:connect(touch) BossVsLegend -4 — 7y
0
It doesn't work. Neither the ROBLOX wiki tutorial. So for sure it's my problem. SirLuisFonsi 9 — 7y
0
Could you post the script you have now on a question? BossVsLegend -4 — 7y
0
function touch(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then char = hit.Parent char.Torso.CFrame = workspace.Part.CFrame * CFrame.new(1612, 20.5, 1426) -- Part is the part you want the character to be teleported to. script.Parent.Touched:connect(touch) SirLuisFonsi 9 — 7y
0
Part isn't a part, Make a part in the workspace called Destination then instead of workspace.Part.CFrame * CFrame.new(1612,20.5,1426) put char.Torso.CFrame = workspace.Destination.CFrame * CFrame.new(0, 0, 0) BossVsLegend -4 — 7y
Ad

Answer this question