Hasli4

RBLX. Teleport

Dec 25th, 2025
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local StartPoint = script.Parent.Part1
  2. local EndPoint = script.Parent.Part2
  3.  
  4. function TouchedFunc(touched)
  5.     if touched.Parent:FindFirstChild("Humanoid") then
  6.         print("Touched")
  7.         local human = touched.Parent.HumanoidRootPart
  8.         human.Position = EndPoint.Position +Vector3.new(0,10,0)
  9.     end
  10. end
  11. StartPoint.Touched:Connect(TouchedFunc)
Advertisement
Add Comment
Please, Sign In to add comment