Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Pad2 = game.Workspace.Pad1
- script.Parent.Touched:Connect(function(touchPart)
- if touchPart and touchPart.Parent and touchPart.Parent.Humanoid and touchPart.Parent.currentlyTeleporting.Value == false then
- local Character = touchPart.Parent
- local teleportLocation = CFrame.new(Pad2.CFrame.X, Pad2.CFrame.Y + 5, Pad2.CFrame.Z)
- Character:SetPrimaryPartCFrame(teleportLocation)
- local teleportingValue = Character.currentlyTeleporting
- teleportingValue.Value = true
- wait(3)
- teleportingValue.Value = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement