Proximity Prompt Teleporter Problem

Hi, I have a proximity prompt teleporter inside my game. Every few weeks, it stops working. Why is this?

Here is a video of what’s happening:
Click here for the video

In the past, I have changed the part name to make it work, but it only works for some time and then it stops working. When I change the name, I have to try TONS of them in order to make it work

Does anybody know what could be wrong?

Here is my script:

ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.PartF2B3.Position
end)

In the past, I have changed the part name to make it work, but it only works for some time and then it stops working. When I change the name, I have to try TONS of them in order to make it work

Does anybody know what could be wrong?

(PartF2B3 is a part that it is teleporting to)
1 Like

Not sure if it’ll help, but try using CFrame instead.

I can’t find any issues with the code. Perhaps you’re not inputting long enough?

Here come the questions:

  • Is this a LocalScript or ServerScript?

  • Are you wanting to detect the PromptButtonHoldEnded Event instead of the Triggered Event?

  • Did you reference the Part right? (Probably yes)

instead of moving the HumanoidRootPart’s position, try doing this instead:

player.Character.PrimaryPart.CFrame = workspace.PartF2B3.CFrame
1 Like

It is a server script, the part is referenced correctly.

Could you try listening for the PromptButtonHoldEnded event instead?

 ProximityPrompt.PromptButtonHoldEnded:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.PartF2B3.Position
end)
1 Like