narla

another test

Jun 20th, 2024
881
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.26 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification",{["Title"] = "Success!",["Text"] = "@Narlascripts on youtube..",["Duration"] = 5,["Button1"] = "Okay."})
  2. player = game.Players.LocalPlayer
  3. local Dive = Instance.new("HopperBin", player.Backpack)
  4.  
  5. Dive.Name = "Dive"
  6.  
  7. local debounce = false
  8. function _restoreproperties()
  9. Holder = player.Character
  10. Torso = Holder:FindFirstChild("Torso")
  11. RightS = Torso:FindFirstChild("Right Shoulder")
  12. LeftS = Torso:FindFirstChild("Left Shoulder")
  13. RightH = Torso:FindFirstChild("Right Hip")
  14. LeftH = Torso:FindFirstChild("Left Hip")
  15. RightS.MaxVelocity = .15
  16. LeftS.MaxVelocity = .15
  17. RightH.MaxVelocity = .1
  18. LeftH.MaxVelocity = .1
  19. RightS.DesiredAngle = 0
  20. LeftS.DesiredAngle = 0
  21. LeftH.DesiredAngle = 0
  22. RightH.DesiredAngle = 0
  23. end
  24. function ManageAnimation(value)
  25. Holder = player.Character
  26. Player = player
  27. if value == "no anim" then
  28. Anim = Holder:FindFirstChild("Animate")
  29. if Anim ~= nil then
  30. Anim.Disabled = true
  31. Anim.Parent = Player
  32. end
  33. elseif value == "re-anim" then
  34. Anim = Player:FindFirstChild("Animate")
  35. if Anim ~= nil then
  36. Anim.Disabled = false
  37. Anim.Parent = Holder
  38. end
  39. end
  40. end
  41. function Down(ml)
  42. for i = 1, ml.velocity.y / 3 do
  43. ml.velocity = ml.velocity + Vector3.new(0, -4.25, 0)
  44. wait()
  45. end
  46. ml:Remove()
  47. end
  48. function Flip()
  49. if debounce == true then
  50. return
  51. end
  52. debounce = true
  53. Char = player.Character
  54. Human = Char.Humanoid
  55. Torso = Char.Torso
  56. CF = Torso.CFrame
  57. Human.PlatformStand = true
  58. VelUp = Instance.new("BodyVelocity")
  59. VelUp.velocity = Vector3.new(0, 45, 0) + Torso.CFrame.lookVector * 30 --Middle (0,0,0). Change for height.
  60. VelUp.P = VelUp.P * 2
  61. VelUp.maxForce = Vector3.new(10000, 10000, 10000) * 999
  62. VelUp.Parent = Torso
  63. coroutine.resume(coroutine.create(Down), VelUp)
  64. Gyro = Instance.new("BodyGyro")
  65. Gyro.P = Gyro.P * 10
  66. Gyro.maxTorque = Vector3.new(100000, 100000, 100000) * 999
  67. Gyro.cframe = CF
  68. Gyro.Parent = Torso
  69. for i = 1, 3 do --The amount of time your guy flips.
  70. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -7, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  71. wait()
  72. end
  73. for i = 1, 6 do --The amount of time your guy flips.
  74. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -40, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  75. wait()
  76. end
  77. wait(0.2)
  78. for i = 1, 10 do --The amount of time your guy flips.
  79. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -7, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  80. wait()
  81. end
  82. Gyro.cframe = CF
  83. wait()
  84. Gyro:Remove()
  85. Human.PlatformStand = false
  86. _restoreproperties()
  87. debounce = false
  88. end
  89. function onActive(mouse)
  90. player = game.Players.LocalPlayer
  91. if player == nil then
  92. return
  93. end
  94. mouse.Button1Down:connect(
  95. function()
  96. Flip()
  97. end
  98. )
  99. end
  100. Dive.Selected:connect(onActive)
  101.  
  102. game.Players.LocalPlayer.CharacterAdded:Connect(
  103. function(character)
  104. character:WaitForChild("HumanoidRootPart")
  105. local Dive = Instance.new("HopperBin", player.Backpack)
  106.  
  107. Dive.Name = "Dive"
  108.  
  109. local debounce = false
  110. function _restoreproperties()
  111. Holder = player.Character
  112. Torso = Holder:FindFirstChild("Torso")
  113. RightS = Torso:FindFirstChild("Right Shoulder")
  114. LeftS = Torso:FindFirstChild("Left Shoulder")
  115. RightH = Torso:FindFirstChild("Right Hip")
  116. LeftH = Torso:FindFirstChild("Left Hip")
  117. RightS.MaxVelocity = .15
  118. LeftS.MaxVelocity = .15
  119. RightH.MaxVelocity = .1
  120. LeftH.MaxVelocity = .1
  121. RightS.DesiredAngle = 0
  122. LeftS.DesiredAngle = 0
  123. LeftH.DesiredAngle = 0
  124. RightH.DesiredAngle = 0
  125. end
  126. function ManageAnimation(value)
  127. Holder = player.Character
  128. Player = player
  129. if value == "no anim" then
  130. Anim = Holder:FindFirstChild("Animate")
  131. if Anim ~= nil then
  132. Anim.Disabled = true
  133. Anim.Parent = Player
  134. end
  135. elseif value == "re-anim" then
  136. Anim = Player:FindFirstChild("Animate")
  137. if Anim ~= nil then
  138. Anim.Disabled = false
  139. Anim.Parent = Holder
  140. end
  141. end
  142. end
  143. function Down(ml)
  144. for i = 1, ml.velocity.y / 3 do
  145. ml.velocity = ml.velocity + Vector3.new(0, -4.25, 0)
  146. wait()
  147. end
  148. ml:Remove()
  149. end
  150. function Flip()
  151. if debounce == true then
  152. return
  153. end
  154. debounce = true
  155. Char = player.Character
  156. Human = Char.Humanoid
  157. Torso = Char.Torso
  158. CF = Torso.CFrame
  159. Human.PlatformStand = true
  160. VelUp = Instance.new("BodyVelocity")
  161. VelUp.velocity = Vector3.new(0, 45, 0) + Torso.CFrame.lookVector * 30 --Middle (0,0,0). Change for height.
  162. VelUp.P = VelUp.P * 2
  163. VelUp.maxForce = Vector3.new(10000, 10000, 10000) * 999
  164. VelUp.Parent = Torso
  165. coroutine.resume(coroutine.create(Down), VelUp)
  166. Gyro = Instance.new("BodyGyro")
  167. Gyro.P = Gyro.P * 10
  168. Gyro.maxTorque = Vector3.new(100000, 100000, 100000) * 999
  169. Gyro.cframe = CF
  170. Gyro.Parent = Torso
  171. for i = 1, 3 do --The amount of time your guy flips.
  172. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -7, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  173. wait()
  174. end
  175. for i = 1, 6 do --The amount of time your guy flips.
  176. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -40, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  177. wait()
  178. end
  179. wait(0.2)
  180. for i = 1, 10 do --The amount of time your guy flips.
  181. Gyro.cframe = Gyro.cframe * CFrame.fromEulerAnglesXYZ(math.pi / -7, 0, 0) --The amount of flips. 1 = -16, 2 = -8
  182. wait()
  183. end
  184. Gyro.cframe = CF
  185. wait()
  186. Gyro:Remove()
  187. Human.PlatformStand = false
  188. _restoreproperties()
  189. debounce = false
  190. end
  191. function onActive(mouse)
  192. player = game.Players.LocalPlayer
  193. if player == nil then
  194. return
  195. end
  196. mouse.Button1Down:connect(
  197. function()
  198. Flip()
  199. end
  200. )
  201. end
  202. Dive.Selected:connect(onActive)
  203. end
  204. )
  205.  
  206.  
Advertisement
Add Comment
Please, Sign In to add comment