Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- local UIS = game:GetService("UserInputService")
- local Camera = workspace.CurrentCamera
- local V3 = Vector3.new
- local Client = game.Players.LocalPlayer
- local Appearance = Client.Character or Client.CharacterAdded:wait()
- local Humanoid = Appearance:WaitForChild("Humanoid")
- local Torso = Appearance:WaitForChild("HumanoidRootPart")
- local Locked = false
- local Pad
- function createpad()
- Pad = Instance.new("Part")
- Pad.Name = "Hover Pad"
- Pad.BrickColor = BrickColor.White()
- Pad.CFrame = Torso.CFrame - V3(0,3,0)
- Pad.Size = V3(6.2, .2, 6.2)
- Pad.Anchored = true
- Pad.CanCollide = false
- Pad.Material = "Neon"
- Pad.Parent = Camera
- stand = Instance.new("Part")
- stand.Transparency = 1
- stand.Anchored = true
- stand.CanCollide = true
- stand.Size = V3(3, .4, 3)
- stand.Parent = Pad
- Instance.new("CylinderMesh", Pad)
- end
- UIS.InputBegan:connect(function(Input, Chatting)
- if Input.KeyCode == Enum.KeyCode.Space and not Chatting then
- press = true
- Locked = false
- game.Debris:AddItem(Pad, 0)
- bv = Torso:FindFirstChild("BodyVelocity")
- if not bv then
- bv=Instance.new("BodyVelocity", Torso)
- bv.Velocity=Vector3.new(0,105,0)
- bv.MaxForce=Vector3.new(0,10^4,0)
- end
- repeat wait() until not press
- bv:Destroy()
- end
- end)
- UIS.InputBegan:connect(function(Input, Chatting)
- if Input.KeyCode == Enum.KeyCode.E and not Chatting then
- Locked = true
- game.Debris:AddItem(bv, 0)
- if Torso then
- local Height = Torso.Position.Y
- local BP = Instance.new("BodyPosition")
- BP.MaxForce = V3(0, 10^9, 0)
- BP.Position = V3(0, Height, 0)
- BP.Parent = Torso
- game.Debris:AddItem(Pad, 0)
- createpad()
- repeat RunService.RenderStepped:wait()
- local Pos = Torso.Position
- local Pos = Pos - V3(0, 3.2, 0)
- Pad.CFrame = CFrame.new(Pos)
- stand.CFrame = CFrame.new(Pos)
- until not Locked
- BP:Destroy()
- end
- end
- end)
- UIS.InputBegan:connect(function(Input, Chatting)
- if Input.KeyCode == Enum.KeyCode.R and not Chatting then
- Locked = not Locked
- end
- end)
- UIS.InputEnded:connect(function(Input, Chatting)
- if Input.KeyCode == Enum.KeyCode.Space and not Chatting and press then
- press = false
- if not Locked then
- game.Debris:AddItem(Pad, 0)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement