Advertisement
Leezyy

Help

Nov 20th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. ------------------------
  2. Script in SSS
  3. -----------------------
  4. local AnimAttrack = nil
  5. local AnimAttrack2 = nil
  6. local Distance = 0
  7. local body = nil
  8.  
  9. local Event = script.ThunderEvent
  10.  
  11. Event.OnServerEvent:Connect(function(player,Enabled,mouse)
  12. Enabled = false
  13. local Character = player.Character
  14. local Humanoid = Character:WaitForChild("Humanoid")
  15.  
  16. Holding = Humanoid:LoadAnimation(script.Hold)
  17. Holding:Play()
  18. end)
  19.  
  20. Event.OnServerEvent:Connect(function(player,Enabled,mouse)
  21. Enabled = true
  22. local Character = player.Character
  23. local Humanoid = Character:WaitForChild("Humanoid")
  24.  
  25. Holding:Stop()
  26. local Release = Humanoid:LoadAnimation(script.Release)
  27. Release:Play()
  28.  
  29. local Effect = game.ReplicatedStorage.ModelMoves.ThunderClap:Clone()
  30. player.Character.LeftFoot.Transparency = 1
  31. player.Character.LeftHand.Transparency = 1
  32. player.Character.LeftLowerArm.Transparency = 1
  33. player.Character.LeftLowerLeg.Transparency = 1
  34. player.Character.LeftUpperArm.Transparency = 1
  35. player.Character.LeftUpperLeg.Transparency = 1
  36. player.Character.LowerTorso.Transparency = 1
  37. player.Character.RightFoot.Transparency = 1
  38. player.Character.RightHand.Transparency = 1
  39. player.Character.RightLowerArm.Transparency = 1
  40. player.Character.RightLowerLeg.Transparency = 1
  41. player.Character.RightUpperArm.Transparency = 1
  42. player.Character.RightUpperLeg.Transparency = 1
  43. player.Character.UpperTorso.Transparency = 1
  44. player.Character.Head.Transparency = 1
  45. Effect.Parent = player.Character.HumanoidRootPart
  46. Effect.CFrame = player.Character.HumanoidRootPart.CFrame.Position
  47. wait(0.1)
  48. Effect.Anchored = false
  49. for i,v in pairs(player.Character:GetChildren()) do
  50. if v:IsA("Accessory") then
  51. for acess,parts in pairs(v:GetChildren()) do
  52. if parts:IsA("Part") or parts:IsA("MeshPart") or parts:IsA("WedgePart") then
  53. parts.Transparency = 1
  54. end
  55. end
  56. end
  57. end
  58. wait(0.1)
  59. body = Instance.new("BodyVelocity")
  60. body.Parent = player.Character.LowerTorso
  61. body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  62. body.Velocity = player.Character.HumanoidRootPart.CFrame.lookVector * Vector3.new(400,400,400)
  63.  
  64. wait(0.3)
  65. player.Character.LeftFoot.Transparency = 0
  66. player.Character.LeftHand.Transparency = 0
  67. player.Character.LeftLowerArm.Transparency = 0
  68. player.Character.LeftLowerLeg.Transparency = 0
  69. player.Character.LeftUpperArm.Transparency = 0
  70. player.Character.LeftUpperLeg.Transparency = 0
  71. player.Character.LowerTorso.Transparency = 0
  72. player.Character.RightFoot.Transparency = 0
  73. player.Character.RightHand.Transparency = 0
  74. player.Character.RightLowerArm.Transparency = 0
  75. player.Character.RightLowerLeg.Transparency = 0
  76. player.Character.RightUpperArm.Transparency = 0
  77. player.Character.RightUpperLeg.Transparency = 0
  78. player.Character.UpperTorso.Transparency = 0
  79. player.Character.Head.Transparency = 0
  80. for i,v in pairs(player.Character:GetChildren()) do
  81. if v:IsA("Accessory") then
  82. for acess,parts in pairs(v:GetChildren()) do
  83. if parts:IsA("Part") or parts:IsA("MeshPart") or parts:IsA("WedgePart") then
  84. parts.Transparency = 0
  85. end
  86. end
  87. end
  88. end
  89. body:Destroy()
  90. wait(0.6)
  91. player.Character.Humanoid.WalkSpeed = 16
  92. for i,v in pairs(player.Character:GetChildren()) do
  93. if v:IsA("MeshPart") or v:IsA("Part") then
  94. print("yes")
  95. end
  96. end
  97. Event:FireClient(player)
  98. end)
  99.  
  100. ---------------------------------
  101. Local Script in Starter Pack
  102. ---------------------------------
  103.  
  104. wait(2)
  105.  
  106. -----------Variables
  107. local player = game.Players.LocalPlayer
  108. local Mouse = player:GetMouse()
  109. local AnimAttrack = nil
  110. local AnimAttrack2 = nil
  111.  
  112. local gyring = false
  113. local Enabled = false
  114.  
  115. local Event = script.ThunderEvent
  116. local mouse = player:GetMouse()
  117.  
  118. local UIS = game:GetService("UserInputService")
  119. ------------------------------------------
  120.  
  121. --------------- Hold
  122. UIS.InputBegan:Connect(function(Key,processed)
  123. if processed then
  124. return
  125. elseif Key.KeyCode == Enum.KeyCode.E and not Enabled then
  126. Enabled = true
  127. local Character = player.Character
  128. gyring = true
  129.  
  130. ---------- BodyGyro
  131. bodpos = Instance.new("BodyPosition")
  132. bodpos.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  133. bodpos.Position = Character:WaitForChild("HumanoidRootPart").Position
  134. bodpos.Parent = Character:WaitForChild("HumanoidRootPart")
  135.  
  136. bodgyro = Instance.new("BodyGyro")
  137. bodgyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  138. bodgyro.CFrame = mouse.Hit
  139. bodgyro.P = 10000
  140. bodgyro.Parent = Character:WaitForChild("HumanoidRootPart")
  141.  
  142. while gyring == true do
  143. bodgyro.CFrame = mouse.Hit
  144. wait()
  145. -------------------------------
  146. end
  147. end
  148. end)
  149. --------------------------------------
  150.  
  151. ------------Release
  152. UIS.InputEnded:Connect(function(Key,processed)
  153. if processed then
  154. return
  155. elseif Key.KeyCode == Enum.KeyCode.E and Enabled then
  156. Enabled = false
  157.  
  158. wait(0.6)
  159.  
  160. player.Character.Humanoid.WalkSpeed = 16
  161. bodpos:Destroy()
  162. bodgyro:Destroy()
  163. Enabled = true
  164. gyring = false
  165.  
  166. Event:FireServer(Enabled,mouse.Hit)
  167.  
  168. end
  169. end)
  170.  
  171. Event.OnClientEvent:Connect(function()
  172. --wait(cooldown)
  173. --debounce = false
  174. Enabled = false
  175. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement