ProximityPrompt Teleport (Part)

  1. What do you want to achieve? press e to teleport.

  2. What is the issue? Pressing but doesnt teleport.

  3. What solutions have you tried so far? Yes. But no solutions.

local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.Destination.Position
end)
2 Likes

move the character

local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
	player.Character:PivotTo(workspace.Destination.CFrame)
end)
1 Like

Don’t change the position of the HumanoidRootPart, change the CFrame.

local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
        player.Character.HumanoidRootPart.CFrame = workspace.Destination.CFrame --If the part is on the ground you'll likely want to add an offset with Vector3.New.
end)

:slight_smile:

3 Likes

No, that does not working. No errors.

1 Like

No, that doesnt work too. Hm? How should I fix this.

1 Like

Are you getting anything in output? Is it a script or local script?

change it to server script not local script

2 Likes

There is no error. It is a local script.

1 Like

make it server script…
30charr

2 Likes

proximity prompts dont work on local scripts…

1 Like

Local scripts can’t run in the workspace; It needs to be a server script :slight_smile:

1 Like

Oh. That is my first time. Thank you so much.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.