Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PLAYER TELEPORTER by BLOXIANCODE youtube.com/c/BloxianCode
- -- Tutorial: https://youtube.com/shorts/uIyMTQNl8hc
- local tpA = script.Parent.tpA
- local tpB = script.Parent.tpB
- local canTouch = true
- tpA.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if canTouch == true then
- canTouch = false
- hit.Parent.HumanoidRootPart.CFrame = tpB.CFrame + Vector3.new(0,5,0)
- wait(1)
- canTouch = true
- end
- end
- end)
- tpB.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if canTouch == true then
- canTouch = false
- hit.Parent.HumanoidRootPart.CFrame = tpA.CFrame + Vector3.new(0,5,0)
- wait(1)
- canTouch = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement