Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GeppoCd = .12
- local OnCD = false
- local Character = script.Parent
- local Humanoid = Character:WaitForChild("Humanoid")
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local UserInputService = game:GetService("UserInputService")
- local TweenService = game:GetService("TweenService")
- local BodyVelocity = Instance.new("BodyVelocity")
- BodyVelocity.Parent = HumanoidRootPart
- BodyVelocity.Name = "Geppo"
- BodyVelocity.MaxForce = Vector3.zero
- local Params = RaycastParams.new()
- Params.FilterDescendantsInstances = {workspace.Map}
- Params.FilterType = Enum.RaycastFilterType.Whitelist
- function Velocity()
- OnCD = true
- Humanoid.AutoRotate = false
- BodyVelocity.MaxForce = Vector3.new(9e9,9e9,9e9)
- BodyVelocity.Velocity = Humanoid.MoveDirection*20 + Vector3.new(0,20,0)
- HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position,HumanoidRootPart.Position + Humanoid.MoveDirection)
- wait(.4)
- Humanoid.AutoRotate = true
- BodyVelocity.MaxForce = Vector3.zero
- wait(GeppoCd)
- OnCD = false
- end
- function Effect()
- local ring = game.ReplicatedStorage.ring:Clone()
- ring.Parent = workspace
- ring.Anchored = true
- ring.CanCollide = false
- local CF = HumanoidRootPart.CFrame
- ring.Size = Vector3.new(1.16, 1.16, 0.1)
- ring.CFrame = CF * CFrame.new(0,-3.3,0)*CFrame.Angles(math.pi/2,0,0)
- ring.Transparency = 0
- TweenService:Create(ring,TweenInfo.new(.3),{
- Size = ring.Size * 5;
- }):Play()
- TweenService:Create(ring,TweenInfo.new(.2),{
- CFrame = CF * CFrame.new(0,-4,0)*CFrame.Angles(math.pi/2,0,0),
- Transparency = 1
- }):Play()
- end
- UserInputService.InputBegan:Connect(function(Key,typ)
- if typ then
- return
- end
- if OnCD then
- return
- end
- local Distance = workspace:Raycast(HumanoidRootPart.Position,Vector3.new(0,-100,0),Params)
- if Distance.Distance < 3 then
- return
- end
- if Key.KeyCode == Enum.KeyCode.Space then
- Effect()
- Velocity()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement