Advertisement
-----------------

spin

Mar 27th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.10 KB | None | 0 0
  1. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  2. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  3. for i=1,2,0.1 do
  4. wait(.1)
  5. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(0,1,0)
  6. for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
  7. anim:Stop()
  8. end
  9. end
  10. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  11. if part.ClassName == "Accessory" or part.ClassName == "Shirt" or part.ClassName == "Pants" or part.ClassName == "ShirtGraphic" or part.ClassName == "BodyColors" then
  12. part:remove()
  13. end
  14. if part:IsA("BasePart") then
  15. part.Color = Color3.fromRGB(255, 204, 153)
  16. end
  17. end
  18.  
  19.  
  20. game.Players.LocalPlayer.Character.Head.Color = Color3.fromRGB(0,255,0)
  21.  
  22. game.Players.LocalPlayer.Character.Head.Mesh.Offset = Vector3.new(0,-0.75,-0.5)
  23. game.Players.LocalPlayer.Character.Head.Mesh.MeshId = "rbxassetid://785024366"
  24. game.Players.LocalPlayer.Character.Head.face.Texture = "rbxassetid://785492382"
  25. game.Players.LocalPlayer.Character.Head.Mesh.Scale = Vector3.new(13, 20, 13)
  26. local shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "rbxassetid://1037676911"
  27. local pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "rbxassetid://1010828432"
  28.  
  29. local fidget1 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget1.Anchored = false fidget1.Size = Vector3.new(0,0,0) fidget1.Color = Color3.fromRGB(0,255,0) fidget1.CanCollide = false
  30. game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget1
  31. fidget1.Mesh.Scale = Vector3.new(3,4,3)
  32. fidget1.Mesh.Offset = Vector3.new(0,-1,-0.1)
  33. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget1
  34. fidget1.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
  35. for i=1,3 do
  36. wait()
  37. fidget1.Position = fidget1.Position+Vector3.new(0,1,0)
  38. end
  39. local weld = Instance.new("Weld",fidget1) weld.Part0 = fidget1 weld.Part1= game.Players.LocalPlayer.Character["Right Arm"] weld.Name = "FidgetHip"
  40.  
  41. local fidget2 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget2.Anchored = false fidget2.Size = Vector3.new(0,0,0) fidget2.Color = Color3.fromRGB(0,255,0) fidget2.CanCollide = false
  42. game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget2
  43. fidget2.Mesh.Scale = Vector3.new(3,4,3)
  44. fidget2.Mesh.Offset = Vector3.new(0,-1,-0.1)
  45. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget2
  46. fidget2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
  47. for i=1,3 do
  48. wait()
  49. fidget2.Position = fidget2.Position+Vector3.new(0,1,0)
  50. end
  51. local weld = Instance.new("Weld",fidget2) weld.Part0 = fidget2 weld.Part1= game.Players.LocalPlayer.Character["Left Arm"] weld.Name = "FidgetHip2"
  52.  
  53. local fidget3 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget3.Anchored = false fidget3.Size = Vector3.new(0,0,0) fidget3.Color = Color3.fromRGB(0,255,0) fidget3.CanCollide = false
  54. game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget3
  55. fidget3.Mesh.Scale = Vector3.new(3,4,3)
  56. fidget3.Mesh.Offset = Vector3.new(0,-1,-0.1)
  57. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget3
  58. fidget3.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame
  59. for i=1,3 do
  60. wait()
  61. fidget3.Position = fidget3.Position+Vector3.new(0,1,0)
  62. end
  63. local weld = Instance.new("Weld",fidget3) weld.Part0 = fidget3 weld.Part1= game.Players.LocalPlayer.Character["Right Leg"] weld.Name = "FidgetHip3"
  64.  
  65. local fidget4 = Instance.new("Part",game.Players.LocalPlayer.Character) fidget4.Anchored = false fidget4.Size = Vector3.new(0,0,0) fidget4.Color = Color3.fromRGB(0,255,0) fidget4.CanCollide = false
  66. game.Players.LocalPlayer.Character.Head.Mesh:Clone().Parent = fidget4
  67. fidget4.Mesh.Scale = Vector3.new(3,4,3)
  68. fidget4.Mesh.Offset = Vector3.new(0,-1,-0.1)
  69. game.Players.LocalPlayer.Character.Head.face:Clone().Parent = fidget4
  70. fidget4.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame
  71. for i=1,3 do
  72. wait()
  73. fidget4.Position = fidget4.Position+Vector3.new(0,1,0)
  74. end
  75. local weld = Instance.new("Weld",fidget4) weld.Part0 = fidget4 weld.Part1= game.Players.LocalPlayer.Character["Left Leg"] weld.Name = "FidgetHip4"
  76.  
  77. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 75
  78. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 333333333
  79. game.Players.LocalPlayer.Character.Humanoid.Health = 333333333
  80. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  81. rot = 0
  82. armrot = 0
  83. speed = 0.25
  84. armspeed = 0.25
  85. flying = nil
  86. flyingtornado1 = nil
  87. flyingtornado2 = nil
  88. tornado1 = nil
  89. tornado2 = nil
  90. fullspin = false
  91. counter = 0
  92. function fullrot()
  93.  
  94. local part = Instance.new("Part",game.Players.LocalPlayer.Character) part.Material = Enum.Material.Neon part.Color = Color3.fromRGB(0,255,0) part.Anchored = true part.Transparency = 0.9 part.CanCollide = false part.Shape = Enum.PartType.Cylinder part.Size = Vector3.new(math.huge,1,1)
  95. part.Name = "FullSpinC"
  96. part.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.rad(90))
  97. game:GetService("Debris"):AddItem(part,1.5)
  98. for i=0.9,1,0.004 do
  99. wait()
  100. part.Size = part.Size+Vector3.new(0,2,2)
  101. part.Transparency = i
  102.  
  103. end
  104. part:remove()
  105. end
  106.  
  107. game:GetService("RunService").RenderStepped:connect(function()
  108.  
  109. for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  110. if part.Name == "Torso" or part.Name == "Right Leg" or part.Name == "Left Leg" or part.Name == "Right Arm" or part.Name == "Left Arm" then
  111. part.Color = Color3.fromRGB(255, 204, 153)
  112. end
  113. end
  114. game.Players.LocalPlayer.Character.Head.Color = Color3.fromRGB(0,255,0)
  115.  
  116.  
  117.  
  118.  
  119.  
  120. counter = counter+1
  121. if counter >= 10 then
  122. counter= 0
  123. if fullspin == true then
  124. fullrot()
  125. end
  126. end
  127. rot = rot+speed
  128. armrot = armrot+armspeed
  129. game.Players.LocalPlayer.Character.Head.CanCollide = false
  130. fidget1.FidgetHip.C0 = CFrame.new(fidget1.FidgetHip.C0.p)*CFrame.Angles(0,armrot,0)
  131. fidget2.FidgetHip2.C0 = CFrame.new(fidget2.FidgetHip2.C0.p)*CFrame.Angles(0,-armrot,0)
  132. for _,child in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  133. if child.Name == "FullSpinC" then
  134. child.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(0,0,math.rad(90))
  135. end
  136. end
  137.  
  138. if flying ~= nil then
  139.  
  140. fidget3.FidgetHip3.C0 = CFrame.new(fidget3.FidgetHip3.C0.p)*CFrame.Angles(0,rot*2,0)
  141. fidget4.FidgetHip4.C0 = CFrame.new(fidget4.FidgetHip4.C0.p)*CFrame.Angles(0,-rot*2,0)
  142. flying.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position+Vector3.new(0,-3.5,0))
  143. end
  144. game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(game.Players.LocalPlayer.Character.Torso.Neck.C0.p)*CFrame.Angles(math.rad(90),0,rot)
  145. if fullspin == true then
  146.  
  147. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0*CFrame.Angles(0,0,rot*10)
  148. for _,child in pairs(game.Workspace:GetChildren()) do
  149. if child ~= game.Players.LocalPlayer.Character then
  150. for _,InChild in pairs(child:GetChildren()) do
  151. if InChild:IsA("BasePart") then
  152. if InChild.Position.X > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X-20 and InChild.Position.X < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X+20 then
  153. if InChild.Position.Z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z-20 and InChild.Position.Z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z+20 then
  154. for _,InChild2 in pairs(child:GetChildren()) do
  155. if InChild2.ClassName == "Humanoid" then
  156. InChild2.Health = InChild2.Health-2
  157. InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80
  158. end
  159. end
  160. end
  161. end
  162. end
  163. end
  164. end
  165. end
  166.  
  167. end
  168. if tornado1 ~= nil then
  169. local pos1 = game.Players.LocalPlayer.Character["Right Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p
  170. local pos2 = game.Players.LocalPlayer:GetMouse().Hit:toWorldSpace(CFrame.new(7.5,0,0)).p
  171. tornado1.Mesh.Scale = Vector3.new(15,(pos1-pos2).magnitude,15)
  172. tornado1.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180))
  173. for _,child in pairs(game.Workspace:GetChildren()) do
  174. if child ~= game.Players.LocalPlayer.Character then
  175. for _,InChild in pairs(child:GetChildren()) do
  176. if InChild:IsA("BasePart") then
  177. if (InChild.Position-pos2).magnitude < 7.5 then
  178. for _,InChild2 in pairs(child:GetChildren()) do
  179. if InChild2.ClassName == "Humanoid" then
  180. InChild2.Health = InChild2.Health-2
  181. InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80
  182. end
  183. end
  184. end
  185. end
  186. end
  187. end
  188. end
  189.  
  190.  
  191.  
  192. end
  193. if tornado2 ~= nil then
  194. local pos1 = game.Players.LocalPlayer.Character["Left Arm"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p
  195. local pos2 = game.Players.LocalPlayer:GetMouse().Hit:toWorldSpace(CFrame.new(-7.5,0,0)).p
  196. tornado2.Mesh.Scale = Vector3.new(15,(pos1-pos2).magnitude,15)
  197. tornado2.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180))
  198.  
  199. for _,child in pairs(game.Workspace:GetChildren()) do
  200. if child ~= game.Players.LocalPlayer.Character then
  201. for _,InChild in pairs(child:GetChildren()) do
  202. if InChild:IsA("BasePart") then
  203. if (InChild.Position-pos2).magnitude < 10 then
  204. for _,InChild2 in pairs(child:GetChildren()) do
  205. if InChild2.ClassName == "Humanoid" then
  206. InChild2.Health = InChild2.Health-1
  207. InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80
  208. end
  209. end
  210. end
  211. end
  212. end
  213. end
  214. end
  215. end
  216.  
  217.  
  218. if flyingtornado1 ~= nil then
  219. local pos1 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p
  220. local cframe1 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0)))
  221. local pos2 = game.Players.LocalPlayer.Character["Right Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(7.5,0,0))).p-Vector3.new(0,4000,0)
  222.  
  223. local ray = Ray.new(pos1,cframe1:toWorldSpace(CFrame.new(Vector3.new(500,0,0))).p-Vector3.new(0,4000,0))
  224. local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  225. if hit ~= nil then
  226. pos2 = position
  227. end
  228.  
  229. flyingtornado1.Mesh.Scale = Vector3.new(6,(pos1-pos2).magnitude,6)
  230. flyingtornado1.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180))
  231.  
  232. for _,child in pairs(game.Workspace:GetChildren()) do
  233. if child ~= game.Players.LocalPlayer.Character then
  234. for _,InChild in pairs(child:GetChildren()) do
  235. if InChild:IsA("BasePart") then
  236. if (InChild.Position-pos2).magnitude < 3 then
  237. for _,InChild2 in pairs(child:GetChildren()) do
  238. if InChild2.ClassName == "Humanoid" then
  239. InChild2.Health = InChild2.Health-1
  240. InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80
  241. end
  242. end
  243. end
  244. end
  245. end
  246. end
  247. end
  248. end
  249.  
  250. if flyingtornado2 ~= nil then
  251. local pos1 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0))).p
  252. local cframe1 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(0,-1,0)))
  253. local pos2 = game.Players.LocalPlayer.Character["Left Leg"].CFrame:toWorldSpace(CFrame.new(Vector3.new(-7.5,0,0))).p-Vector3.new(0,4000,0)
  254.  
  255. local ray = Ray.new(pos1,cframe1:toWorldSpace(CFrame.new(Vector3.new(-500,0,0))).p-Vector3.new(0,4000,0))
  256. local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
  257.  
  258. if hit ~= nil then
  259. pos2 = position
  260. end
  261.  
  262. flyingtornado2.Mesh.Scale = Vector3.new(6,(pos1-pos2).magnitude,6)
  263. flyingtornado2.CFrame = CFrame.new((pos1+pos2)/2,pos1)*CFrame.Angles(math.rad(90),armrot*2,math.rad(180))
  264.  
  265. for _,child in pairs(game.Workspace:GetChildren()) do
  266. if child ~= game.Players.LocalPlayer.Character then
  267. for _,InChild in pairs(child:GetChildren()) do
  268. if InChild:IsA("BasePart") then
  269. if (InChild.Position-pos2).magnitude < 3 then
  270. for _,InChild2 in pairs(child:GetChildren()) do
  271. if InChild2.ClassName == "Humanoid" then
  272. InChild2.Health = InChild2.Health-1
  273. InChild.Velocity = game.Workspace.CurrentCamera.CFrame.lookVector*80
  274. end
  275. end
  276. end
  277. end
  278. end
  279. end
  280. end
  281. end
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. end)
  289. game:GetService("UserInputService").InputBegan:connect(function(key)
  290. if key.KeyCode == Enum.KeyCode.F then
  291. if flying == nil then
  292. flying = Instance.new("Part",game.Players.LocalPlayer.Character) flying.Transparency = 1 flying.Anchored = true flying.Size = Vector3.new(3,1,3)
  293. flyingtornado1 = Instance.new("Part",game.Players.LocalPlayer.Character) flyingtornado1.Color = Color3.fromRGB(200,255,200) flyingtornado1.Transparency = 0.5 flyingtornado1.CanCollide = false flyingtornado1.Anchored = true
  294. local mesh = Instance.new("SpecialMesh",flyingtornado1) mesh.MeshId = "rbxassetid://1040723301"
  295. flyingtornado2 = Instance.new("Part",game.Players.LocalPlayer.Character) flyingtornado2.Color = Color3.fromRGB(200,255,200) flyingtornado2.Transparency = 0.5 flyingtornado2.CanCollide = false flyingtornado2.Anchored = true
  296. local mesh = Instance.new("SpecialMesh",flyingtornado2) mesh.MeshId = "rbxassetid://1040723301"
  297.  
  298. else
  299. flying:remove()
  300. flying = nil
  301. flyingtornado1:remove()
  302. flyingtornado1 = nil
  303. flyingtornado2:remove()
  304. flyingtornado2 = nil
  305. end
  306. end
  307. if key.KeyCode == Enum.KeyCode.E then
  308. armspeed = 0.5
  309. tornado1 = Instance.new("Part",game.Players.LocalPlayer.Character) tornado1.Color = Color3.fromRGB(200,255,200) tornado1.Transparency = 0.5 tornado1.CanCollide = false tornado1.Anchored = true
  310. local mesh = Instance.new("SpecialMesh",tornado1) mesh.MeshId = "rbxassetid://1040723301"
  311. tornado2 = Instance.new("Part",game.Players.LocalPlayer.Character) tornado2.Color = Color3.fromRGB(200,255,200) tornado2.Transparency = 0.5 tornado2.CanCollide = false tornado2.Anchored = true
  312. local mesh = Instance.new("SpecialMesh",tornado2) mesh.MeshId = "rbxassetid://1040723301"
  313.  
  314. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(90))
  315. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90))
  316. end
  317. if key.KeyCode == Enum.KeyCode.R then
  318. if fullspin == false then
  319. fullspin = true
  320.  
  321. else
  322. fullspin = false
  323. end
  324. end
  325. end)
  326. game:GetService("UserInputService").InputEnded:connect(function(key)
  327.  
  328. if key.KeyCode == Enum.KeyCode.E then
  329. tornado1:remove()
  330. tornado2:remove()
  331. tornado1 = nil
  332. tornado2 = nil
  333. armspeed = 0.25
  334. game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0*CFrame.Angles(0,0,math.rad(-90))
  335. game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0*CFrame.Angles(0,0,math.rad(90))
  336. end
  337. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement