I would like to achieve a one way teleporter via clicking a part teleporting to another one, but not letting you teleport back. Of course we are talking in the same place, not a teleporter to another place so I would appreciate help because i have no clue on scripting
Place two parts in a folder. Name one of them “Destination”. Add a ClickDetector to the other part, and name the part “Start”. Then parent this ServerScript to the Folder.
local Folder = script.Parent
local ClickDetector = Folder.Start.ClickDetector
local Destination = Folder.Destination.CFrame
ClickDetector.Activated:Connect(function(plr)
if not plr.Character return end
plr:SetPivot(Destination)
end)
1 Like
Thanks a lot! Really appreciate this
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.