Proximity teleport script not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    id like the script to reliably work
  2. What is the issue? Include screenshots / videos if possible!
    Issue is that the script does not reliably work and most of the time it only works 1 way
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    ive tried messing around with it a bit but im not a good scripter so i couldnt fix it also this is a free model
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.Position = workspace.Destination.Position 
end)

ceirpt

1 Like

Can you please put a print() statement before the teleport script? You should check if the event is firing at all

OK i just tried that and the event is firing. It teleports me and prints something about 5 times total before it stops working. trying to fix it its quite annoying

I’m not that good at scripting but have you tried a debounce?

ProximityPrompt.Triggered:Connect(function(player)
	player.Character:PivotTo(workspace.Destination.CFrame)
    print("teleported")
end)

Hello try this and see if it works


Works fine for me

you might have the same issue as mine before, do you change the character location with :SetPrimaryPartCFrame or changing the hrp.CFrame, and do you use part or vector3 for the teleport location, if you use part with streamingenabled then that would be the issue, if you change the hrp.CFrame instead of using :SetPrimaryPartCFrame then theres a chance where it only move the hrp and not the entire character, the character might be visible in client side on the right position but not serverside…

Can you try this?

local ProximityPrompt = script.Parent

ProximityPrompt.Triggered:Connect(function(player)
	player.Character.Torso.CFrame = game.Workspace.Destination.CFrame
end)

Aha this is due to in R6 the primary part becomes the Head so do

-- local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
	player.Character.PrimaryPart.Position = workspace.Destination.Position 
end)
1 Like

this is cuz ur in R15 try in R6 and lets see if it works

try cframe, this should work

local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
	player.Character:WaitForChild("HumanoidRootPart").CFrame = workspace.Destination.CFrame 
end)

Well It Super Simple Also U Cant Use Position

ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.CFrame = workspace.Destination.CFrame 
end)

it should work

Script in the ProximityPrompt; Make sure the ProximityPrompts parent is in a model!

-- local ProximityPrompt = script.Parent
ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.CFrame = workspace.Destination.CFrame 
end)```

oh wait i know 1 thing this just can work in roblox studio so here is new script

local ProximityPrompt = script.Parent -- local Prox

ProximityPrompt.Triggered:Connect(function(player)
	player.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Destination.Position) -- Teleport Player
end)