Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Local = game:GetService('Players').LocalPlayer
- Char = Local.Character
- touched,tpdback = false, false
- Local.CharacterAdded:connect(function(char)
- if script.Disabled ~= true then
- wait(.25)
- loc = Char.HumanoidRootPart.Position
- Char:MoveTo(box.Position + Vector3.new(0,.5,0))
- end
- end)
- game:GetService('UserInputService').InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Equals then
- if script.Disabled ~= true then
- script.Disabled = true
- print'you may re-execute'
- end
- end
- end)
- box = Instance.new('Part',workspace)
- box.Anchored = true
- box.CanCollide = true
- box.Size = Vector3.new(10,1,10)
- box.Position = Vector3.new(0,10000,0)
- box.Touched:connect(function(part)
- if (part.Parent.Name == Local.Name) then
- if touched == false then
- touched = true
- function apply()
- if script.Disabled ~= true then
- no = Char.HumanoidRootPart:Clone()
- wait(.25)
- Char.HumanoidRootPart:Destroy()
- no.Parent = Char
- Char:MoveTo(loc)
- touched = false
- end end
- if Char then
- apply()
- end
- end
- end
- end)
- repeat wait() until Char
- loc = Char.HumanoidRootPart.Position
- Char:MoveTo(box.Position + Vector3.new(0,.5,0))
Add Comment
Please, Sign In to add comment