Advertisement
SxScripting

Geppo Script #1

May 20th, 2023
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. local GeppoCd = .12
  2. local OnCD = false
  3.  
  4. local Character = script.Parent
  5. local Humanoid = Character:WaitForChild("Humanoid")
  6. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  7. local UserInputService = game:GetService("UserInputService")
  8.  
  9. local TweenService = game:GetService("TweenService")
  10. local BodyVelocity = Instance.new("BodyVelocity")
  11. BodyVelocity.Parent = HumanoidRootPart
  12. BodyVelocity.Name = "Geppo"
  13. BodyVelocity.MaxForce = Vector3.zero
  14.  
  15. local Params = RaycastParams.new()
  16. Params.FilterDescendantsInstances = {workspace.Map}
  17. Params.FilterType = Enum.RaycastFilterType.Whitelist
  18.  
  19. function Velocity()
  20. OnCD = true
  21. Humanoid.AutoRotate = false
  22. BodyVelocity.MaxForce = Vector3.new(9e9,9e9,9e9)
  23. BodyVelocity.Velocity = Humanoid.MoveDirection*20 + Vector3.new(0,20,0)
  24. HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position,HumanoidRootPart.Position + Humanoid.MoveDirection)
  25. wait(.4)
  26. Humanoid.AutoRotate = true
  27. BodyVelocity.MaxForce = Vector3.zero
  28. wait(GeppoCd)
  29. OnCD = false
  30. end
  31.  
  32. function Effect()
  33. local ring = game.ReplicatedStorage.ring:Clone()
  34. ring.Parent = workspace
  35. ring.Anchored = true
  36. ring.CanCollide = false
  37.  
  38. local CF = HumanoidRootPart.CFrame
  39.  
  40. ring.Size = Vector3.new(1.16, 1.16, 0.1)
  41. ring.CFrame = CF * CFrame.new(0,-3.3,0)*CFrame.Angles(math.pi/2,0,0)
  42. ring.Transparency = 0
  43.  
  44. TweenService:Create(ring,TweenInfo.new(.3),{
  45. Size = ring.Size * 5;
  46. }):Play()
  47.  
  48. TweenService:Create(ring,TweenInfo.new(.2),{
  49. CFrame = CF * CFrame.new(0,-4,0)*CFrame.Angles(math.pi/2,0,0),
  50. Transparency = 1
  51. }):Play()
  52. end
  53.  
  54. UserInputService.InputBegan:Connect(function(Key,typ)
  55. if typ then
  56. return
  57. end
  58.  
  59. if OnCD then
  60. return
  61. end
  62.  
  63. local Distance = workspace:Raycast(HumanoidRootPart.Position,Vector3.new(0,-100,0),Params)
  64.  
  65. if Distance.Distance < 3 then
  66. return
  67. end
  68.  
  69. if Key.KeyCode == Enum.KeyCode.Space then
  70. Effect()
  71. Velocity()
  72. end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement