Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pointA = workspace.PointA
- local pointB = workspace.PointB
- local debounce = false
- pointA.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") then
- if debounce == false then
- debounce = true
- hit.Parent.HumanoidRootPart.Position = pointB.Position
- wait(1)
- debounce = false
- end
- end
- end)
- pointB.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") then
- if debounce == false then
- debounce = true
- hit.Parent.HumanoidRootPart.Position = pointA.Position
- wait(1)
- debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement