What do you want to achieve? I want two proximity prompts to be able to teleport the player to different locations.
What is the issue? When i use one proximity prompt, the other one just doesn’t want to work
Here is the video: robloxapp-20230401-1406051.wmv (1.3 MB)
**What solutions have you tried so far?**I have tried to look at Youtube tutorials too see if i did something wrong, but nothing worked, I’ve even tried to look at the forum.
local Proximity_Part = script.Parent
local Prompt = Proximity_Part:WaitForChild("ProximityPrompt")
--[Teleport Destinations]
local Teleport_Folder = game.Workspace:FindFirstChild("TeleportParts")
local TP1, TP2 = Teleport_Folder:FindFirstChild("Outside_Teleport"), Teleport_Folder:FindFirstChild("Basement_Teleport")
Prompt.Triggered:Connect(function(plr)
local char = plr.Character
local root = char.HumanoidRootPart
root.Position = TP1.Position
end)
I think I found the issue. I changed the code to char:MoveTo(TP1.Position) and it seemed to work. But thanks for the help anyway. Also the part is anchored