Lollddsf

krystal

Aug 27th, 2021 (edited)
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.01 KB | None | 0 0
  1.  
  2. repeat wait() until game:IsLoaded() and game.CoreGui
  3. spawn(function()
  4. while true do
  5. settings().Physics.AllowSleep = false
  6. game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  7. setsimulationradius(math.pow(math.huge,math.huge)*math.huge)
  8. game:GetService("RunService").Stepped:wait()
  9. end
  10. end)
  11.  
  12. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  13. if v:IsA("BasePart") and v.Name ~="Head" then
  14. game:GetService("RunService").Heartbeat:connect(function()
  15. v.Velocity = Vector3.new(45,0,0)
  16. end)
  17. end
  18. end
  19. wait(0.1)
  20.  
  21.  
  22. local function nocloloop()
  23. if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  24. for _, child in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  25. if child:IsA("BasePart") and child.CanCollide == true then
  26. child.CanCollide = false
  27. end
  28. end
  29. end
  30. end
  31. Noclipping = game:GetService('RunService').Stepped:connect(nocloloop)
  32.  
  33.  
  34.  
  35.  
  36. local Player = game.Players.LocalPlayer
  37. local Character = Player.Character
  38. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  39.  
  40. Character.RightUpperArm["RightShoulder"]:Destroy()
  41. Character.LeftUpperArm["LeftShoulder"]:Destroy()
  42. Character.LeftUpperLeg["LeftHip"]:Destroy()
  43. Character.RightUpperLeg["RightHip"]:Destroy()
  44. else
  45. Character.Torso["Right Shoulder"]:Destroy()
  46. Character.Torso["Left Shoulder"]:Destroy()
  47. Character.Torso["Right Hip"]:Destroy()
  48. Character.Torso["Left Hip"]:Destroy()
  49. end
  50. local Leftarm = Character:FindFirstChild("Left Arm") or Character:FindFirstChild("LeftUpperArm")
  51. local Rightarm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightUpperArm")
  52. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  53. local Leftleg = Character:FindFirstChild("Left Leg") or Character:FindFirstChild("LeftUpperLeg")
  54. local Rightleg = Character:FindFirstChild("Right Leg") or Character:FindFirstChild("RightUpperLeg")
  55. local rig = game:GetObjects("rbxassetid://5508993607")[1]
  56.  
  57. rig.Parent = Character
  58. rig:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  59. rig.Humanoid:Move(game.Players.LocalPlayer.Character.Humanoid.MoveDirection, false)
  60. rig.Torso.Anchored = false
  61.  
  62. if Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  63.  
  64.  
  65. alignPosition = Instance.new("AlignPosition",Leftarm)
  66. alignPosition.RigidityEnabled = false
  67. alignPosition.ApplyAtCenterOfMass = false
  68. alignPosition.MaxForce = 9e9
  69. alignPosition.MaxVelocity = 9e99
  70. alignPosition.ReactionForceEnabled = false
  71. alignPosition.Responsiveness = 9e99
  72. --alignPosition.Parent = Leftarm
  73. alignOr = Instance.new("AlignOrientation",Leftarm)
  74. alignOr.MaxTorque = 9e99
  75. alignOr.MaxAngularVelocity = 9e99
  76. alignOr.PrimaryAxisOnly = false
  77. alignOr.ReactionTorqueEnabled = false
  78. alignOr.Responsiveness = 200
  79. alignOr.RigidityEnabled = false
  80. --alignOr.Parent = Leftarm
  81. --Rightarm
  82. alignPosition = Instance.new("AlignPosition",Rightarm)
  83. alignPosition.RigidityEnabled = false
  84. alignPosition.ApplyAtCenterOfMass = false
  85. alignPosition.MaxForce = 9e9
  86. alignPosition.MaxVelocity = 9e99
  87. alignPosition.ReactionForceEnabled = false
  88. alignPosition.Responsiveness = 9e99
  89. --alignPosition.Parent = Rightarm
  90. alignOr = Instance.new("AlignOrientation",Rightarm)
  91. alignOr.MaxTorque = 9e99
  92. alignOr.MaxAngularVelocity = 9e99
  93. alignOr.PrimaryAxisOnly = false
  94. alignOr.ReactionTorqueEnabled = false
  95. alignOr.Responsiveness = 200
  96. alignOr.RigidityEnabled = false
  97. --alignOr.Parent = Rightarm
  98. --Torso
  99. alignPosition = Instance.new("AlignPosition",Torso)
  100. alignPosition.RigidityEnabled = false
  101. alignPosition.ApplyAtCenterOfMass = false
  102. alignPosition.MaxForce = 9e9
  103. alignPosition.MaxVelocity = 9e99
  104. alignPosition.ReactionForceEnabled = false
  105. alignPosition.Responsiveness = 9e99
  106. --alignPosition.Parent = Torso
  107. alignOr = Instance.new("AlignOrientation",Torso)
  108. alignOr.MaxTorque = 9e99
  109. alignOr.MaxAngularVelocity = 9e99
  110. alignOr.PrimaryAxisOnly = false
  111. alignOr.ReactionTorqueEnabled = false
  112. alignOr.Responsiveness = 200
  113. alignOr.RigidityEnabled = false
  114. --alignOr.Parent = Torso
  115. --LeftLeg
  116. alignPosition = Instance.new("AlignPosition",Leftleg)
  117. alignPosition.RigidityEnabled = false
  118. alignPosition.ApplyAtCenterOfMass = false
  119. alignPosition.MaxForce = 9e9
  120. alignPosition.MaxVelocity = 9e99
  121. alignPosition.ReactionForceEnabled = false
  122. alignPosition.Responsiveness = 9e99
  123. alignPosition.Parent = Leftleg
  124. alignOr = Instance.new("AlignOrientation",Leftleg)
  125. alignOr.MaxTorque = 9e99
  126. alignOr.MaxAngularVelocity = 9e99
  127. alignOr.PrimaryAxisOnly = false
  128. alignOr.ReactionTorqueEnabled = false
  129. alignOr.Responsiveness = 200
  130. alignOr.RigidityEnabled = false
  131. --alignOr.Parent = Leftleg
  132. --Rightleg
  133. alignPosition = Instance.new("AlignPosition",Rightleg)
  134. alignPosition.RigidityEnabled = false
  135. alignPosition.ApplyAtCenterOfMass = false
  136. alignPosition.MaxForce = 9e9
  137. alignPosition.MaxVelocity = 9e99
  138. alignPosition.ReactionForceEnabled = false
  139. alignPosition.Responsiveness = 9e99
  140. alignPosition.Parent = Rightleg
  141. alignOr = Instance.new("AlignOrientation",Rightleg)
  142. alignOr.MaxTorque = 9e99
  143. alignOr.MaxAngularVelocity = 9e99
  144. alignOr.PrimaryAxisOnly = false
  145. alignOr.ReactionTorqueEnabled = false
  146. alignOr.Responsiveness = 200
  147. alignOr.RigidityEnabled = false
  148. --alignOr.Parent = Rightleg
  149. a0 = Instance.new("Attachment",Rightarm)
  150. a0.Position = Vector3.new(0, -0.4, 0)
  151. a1 = Instance.new("Attachment",rig["Right Arm"])
  152. a2 = Instance.new("Attachment",Rightarm)
  153. Rightarm.AlignPosition.Attachment0 = a0
  154. Rightarm.AlignPosition.Attachment1 = a1
  155. Rightarm.AlignOrientation.Attachment0 = a2
  156. Rightarm.AlignOrientation.Attachment1 = a1
  157. a0 = Instance.new("Attachment",Leftarm)
  158. a0.Position = Vector3.new(0, -0.4, 0)
  159. a1 = Instance.new("Attachment",rig["Left Arm"])
  160. a2 = Instance.new("Attachment",Leftarm)
  161. Leftarm.AlignPosition.Attachment0 = a0
  162. Leftarm.AlignPosition.Attachment1 = a1
  163. Leftarm.AlignOrientation.Attachment0 = a2
  164. Leftarm.AlignOrientation.Attachment1 = a1
  165. a0 = Instance.new("Attachment",Torso)
  166. a0.Position = Vector3.new(0, -0.2, 0)
  167. a1 = Instance.new("Attachment",rig["Torso"])
  168. a2 = Instance.new("Attachment",Torso)
  169. Torso.AlignPosition.Attachment0 = a0
  170. Torso.AlignPosition.Attachment1 = a1
  171. Torso.AlignOrientation.Attachment0 = a2
  172. Torso.AlignOrientation.Attachment1 = a1
  173. a0 = Instance.new("Attachment",Leftleg)
  174. a0.Position = Vector3.new(0, -0.5, 0)
  175.  
  176. a1 = Instance.new("Attachment",rig["Left Leg"])
  177. a2 = Instance.new("Attachment",Leftleg)
  178. Leftleg.AlignPosition.Attachment0 = a0
  179. Leftleg.AlignPosition.Attachment1 = a1
  180. Leftleg.AlignOrientation.Attachment0 = a2
  181. Leftleg.AlignOrientation.Attachment1 = a1
  182. a0 = Instance.new("Attachment",Rightleg)
  183. a0.Position = Vector3.new(0, -0.5, 0)
  184.  
  185. a1 = Instance.new("Attachment",rig["Right Leg"])
  186. a2 = Instance.new("Attachment",Rightleg)
  187. Rightleg.AlignPosition.Attachment0 = a0
  188. Rightleg.AlignPosition.Attachment1 = a1
  189. Rightleg.AlignOrientation.Attachment0 = a2
  190. Rightleg.AlignOrientation.Attachment1 = a1
  191.  
  192. else
  193.  
  194. alignPosition = Instance.new("AlignPosition",Leftarm)
  195. alignPosition.RigidityEnabled = false
  196. alignPosition.ApplyAtCenterOfMass = false
  197. alignPosition.MaxForce = 9e9
  198. alignPosition.MaxVelocity = 9e99
  199. alignPosition.ReactionForceEnabled = false
  200. alignPosition.Responsiveness = 9e99
  201. --alignPosition.Parent = Leftarm
  202. alignOr = Instance.new("AlignOrientation",Leftarm)
  203. alignOr.MaxTorque = 9e99
  204. alignOr.MaxAngularVelocity = 9e99
  205. alignOr.PrimaryAxisOnly = false
  206. alignOr.ReactionTorqueEnabled = false
  207. alignOr.Responsiveness = 200
  208. alignOr.RigidityEnabled = false
  209. --alignOr.Parent = Leftarm
  210. --Rightarm
  211. alignPosition = Instance.new("AlignPosition",Rightarm)
  212. alignPosition.RigidityEnabled = false
  213. alignPosition.ApplyAtCenterOfMass = false
  214. alignPosition.MaxForce = 9e9
  215. alignPosition.MaxVelocity = 9e99
  216. alignPosition.ReactionForceEnabled = false
  217. alignPosition.Responsiveness = 9e99
  218. --alignPosition.Parent = Rightarm
  219. alignOr = Instance.new("AlignOrientation",Rightarm)
  220. alignOr.MaxTorque = 9e99
  221. alignOr.MaxAngularVelocity = 9e99
  222. alignOr.PrimaryAxisOnly = false
  223. alignOr.ReactionTorqueEnabled = false
  224. alignOr.Responsiveness = 200
  225. alignOr.RigidityEnabled = false
  226. --alignOr.Parent = Rightarm
  227. --Torso
  228. alignPosition = Instance.new("AlignPosition",Torso)
  229. alignPosition.RigidityEnabled = false
  230. alignPosition.ApplyAtCenterOfMass = false
  231. alignPosition.MaxForce = 9e9
  232. alignPosition.MaxVelocity = 9e99
  233. alignPosition.ReactionForceEnabled = false
  234. alignPosition.Responsiveness = 9e99
  235. --alignPosition.Parent = Torso
  236. alignOr = Instance.new("AlignOrientation",Torso)
  237. alignOr.MaxTorque = 9e99
  238. alignOr.MaxAngularVelocity = 9e99
  239. alignOr.PrimaryAxisOnly = false
  240. alignOr.ReactionTorqueEnabled = false
  241. alignOr.Responsiveness = 200
  242. alignOr.RigidityEnabled = false
  243. --alignOr.Parent = Torso
  244. --LeftLeg
  245. alignPosition = Instance.new("AlignPosition",Leftleg)
  246. alignPosition.RigidityEnabled = false
  247. alignPosition.ApplyAtCenterOfMass = false
  248. alignPosition.MaxForce = 9e9
  249. alignPosition.MaxVelocity = 9e99
  250. alignPosition.ReactionForceEnabled = false
  251. alignPosition.Responsiveness = 9e99
  252. alignPosition.Parent = Leftleg
  253. alignOr = Instance.new("AlignOrientation",Leftleg)
  254. alignOr.MaxTorque = 9e99
  255. alignOr.MaxAngularVelocity = 9e99
  256. alignOr.PrimaryAxisOnly = false
  257. alignOr.ReactionTorqueEnabled = false
  258. alignOr.Responsiveness = 200
  259. alignOr.RigidityEnabled = false
  260. --alignOr.Parent = Leftleg
  261. --Rightleg
  262. alignPosition = Instance.new("AlignPosition",Rightleg)
  263. alignPosition.RigidityEnabled = false
  264. alignPosition.ApplyAtCenterOfMass = false
  265. alignPosition.MaxForce = 9e9
  266. alignPosition.MaxVelocity = 9e99
  267. alignPosition.ReactionForceEnabled = false
  268. alignPosition.Responsiveness = 9e99
  269. alignPosition.Parent = Rightleg
  270. alignOr = Instance.new("AlignOrientation",Rightleg)
  271. alignOr.MaxTorque = 9e99
  272. alignOr.MaxAngularVelocity = 9e99
  273. alignOr.PrimaryAxisOnly = false
  274. alignOr.ReactionTorqueEnabled = false
  275. alignOr.Responsiveness = 200
  276. alignOr.RigidityEnabled = false
  277. --alignOr.Parent = Rightleg
  278. a0 = Instance.new("Attachment",Rightarm)
  279. a1 = Instance.new("Attachment",rig["Right Arm"])
  280. a2 = Instance.new("Attachment",Rightarm)
  281. Rightarm.AlignPosition.Attachment0 = a0
  282. Rightarm.AlignPosition.Attachment1 = a1
  283. Rightarm.AlignOrientation.Attachment0 = a2
  284. Rightarm.AlignOrientation.Attachment1 = a1
  285. a0 = Instance.new("Attachment",Leftarm)
  286. a1 = Instance.new("Attachment",rig["Left Arm"])
  287. a2 = Instance.new("Attachment",Leftarm)
  288. Leftarm.AlignPosition.Attachment0 = a0
  289. Leftarm.AlignPosition.Attachment1 = a1
  290. Leftarm.AlignOrientation.Attachment0 = a2
  291. Leftarm.AlignOrientation.Attachment1 = a1
  292. a0 = Instance.new("Attachment",Torso)
  293. a1 = Instance.new("Attachment",rig["Torso"])
  294. a2 = Instance.new("Attachment",Torso)
  295. Torso.AlignPosition.Attachment0 = a0
  296. Torso.AlignPosition.Attachment1 = a1
  297. Torso.AlignOrientation.Attachment0 = a2
  298. Torso.AlignOrientation.Attachment1 = a1
  299. a0 = Instance.new("Attachment",Leftleg)
  300.  
  301. a1 = Instance.new("Attachment",rig["Left Leg"])
  302. a2 = Instance.new("Attachment",Leftleg)
  303. Leftleg.AlignPosition.Attachment0 = a0
  304. Leftleg.AlignPosition.Attachment1 = a1
  305. Leftleg.AlignOrientation.Attachment0 = a2
  306. Leftleg.AlignOrientation.Attachment1 = a1
  307. a0 = Instance.new("Attachment",Rightleg)
  308.  
  309. a1 = Instance.new("Attachment",rig["Right Leg"])
  310. a2 = Instance.new("Attachment",Rightleg)
  311. Rightleg.AlignPosition.Attachment0 = a0
  312. Rightleg.AlignPosition.Attachment1 = a1
  313. Rightleg.AlignOrientation.Attachment0 = a2
  314. Rightleg.AlignOrientation.Attachment1 = a1
  315. end
  316.  
  317. rig.HumanoidRootPart.Anchored = false
  318. spawn(function()
  319. while true do
  320. wait()
  321. if Character:FindFirstChild("Humanoid").Health == 0 then
  322. Character:BreakJoints()
  323. rig:BreakJoints()
  324. end
  325. end
  326. end)
  327.  
  328. function nocol(same)
  329. for i,v in pairs(Character:GetDescendants()) do
  330. if v:IsA("BasePart") then
  331. HILOL=Instance.new("NoCollisionConstraint",v)
  332. HILOL.Part0 = v
  333. HILOL.Part1 = same
  334. end
  335. end
  336. end
  337. for i,v in pairs(rig:GetDescendants()) do
  338. if v:IsA("BasePart") then
  339. nocol(v)
  340. end
  341. end
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350. Rightarm.Anchored = true
  351. Torso.Anchored = true
  352. Leftarm.Anchored = true
  353. Rightleg.Anchored = true
  354. Leftleg.Anchored = true
  355. Character.Head.Anchored = true
  356. for i=0,30 do
  357. wait()
  358. rig.HumanoidRootPart.RotVelocity = Vector3.new(0,10,0)
  359. rig.HumanoidRootPart.Velocity = Vector3.new(0,10,0)
  360. end
  361.  
  362. game.Players.LocalPlayer.Character.Animate.Disabled = true
  363. game:GetService("UserInputService").JumpRequest:connect(function(same)
  364. if rig.Humanoid.FloorMaterial~=Enum.Material.Air then
  365. rig.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  366. game.Players.LocalPlayer.Character.Dummy:FindFirstChildOfClass('Humanoid').Sit = false
  367. end
  368. end)
  369. if Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  370. Character.HumanoidRootPart.RootJoint:Destroy()
  371. elseif Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  372. Character.LowerTorso.Root:Destroy()
  373. end
  374.  
  375.  
  376.  
  377. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  378. Humanoid = game.Players.LocalPlayer.Character.Humanoid
  379. game["Run Service"].RenderStepped:Connect(function()
  380. rig.Humanoid:Move(Character.Humanoid.MoveDirection, false)
  381.  
  382. local ActiveTracks = Humanoid:GetPlayingAnimationTracks()
  383. for _,v in pairs(ActiveTracks) do
  384. v:Stop()
  385. end
  386. end)
  387. Rightarm.Anchored = false
  388. Torso.Anchored = false
  389. Leftarm.Anchored = false
  390. Rightleg.Anchored = false
  391. Leftleg.Anchored = false
  392. Character.Head.Anchored = false
  393. game.Workspace.CurrentCamera.CameraSubject = rig.Humanoid
  394.  
  395. --[[
  396. local Humanoid1 = Character.Humanoid
  397. local Humanoid2 = Character.Dummy.Humanoid
  398. Humanoid2.Parent = Character
  399. Humanoid1.Parent = Character.Dummy
  400. ]]--
  401.  
  402. wait()
  403.  
  404. spawn(function()
  405.  
  406.  
  407. Player=game.Players.LocalPlayer
  408. Character=Player.Character.Dummy
  409. hum = Character.Humanoid
  410. LeftArm=Character["Left Arm"]
  411. LeftLeg=Character["Left Leg"]
  412. RightArm=Character["Right Arm"]
  413. RightLeg=Character["Right Leg"]
  414. Root=Character["HumanoidRootPart"]
  415. Head=Character["Head"]
  416. Torso=Character["Torso"]
  417. Neck=Torso["Neck"]
  418. mouse = Player:GetMouse()
  419. walking = false
  420. jumping = false
  421. attacking = false
  422. firsttime = false
  423. tauntdebounce = false
  424. position = nil
  425. MseGuide = true
  426. running = false
  427. settime = 0
  428. sine = 0
  429. t = 0
  430. ws = 14
  431. change = 1
  432. combo1 = true
  433. dancing = false
  434. equip = false
  435. dgs = 75
  436. combo2 = false
  437. switch1 = true
  438. switch2 = false
  439. firsttime2 = false
  440. combo3 = false
  441. gunallowance = false
  442. shooting = false
  443. RunSrv = game:GetService("RunService")
  444. RenderStepped = game:GetService("RunService").RenderStepped
  445. removeuseless = game:GetService("Debris")
  446.  
  447. screenGui = Instance.new("ScreenGui")
  448. screenGui.Parent = script.Parent
  449.  
  450. local HEADLERP = Instance.new("ManualWeld")
  451. HEADLERP.Parent = Head
  452. HEADLERP.Part0 = Head
  453. HEADLERP.Part1 = Head
  454. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  455.  
  456. local TORSOLERP = Instance.new("ManualWeld")
  457. TORSOLERP.Parent = Root
  458. TORSOLERP.Part0 = Torso
  459. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  460.  
  461. local ROOTLERP = Instance.new("ManualWeld")
  462. ROOTLERP.Parent = Root
  463. ROOTLERP.Part0 = Root
  464. ROOTLERP.Part1 = Torso
  465. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  466.  
  467. local RIGHTARMLERP = Instance.new("ManualWeld")
  468. RIGHTARMLERP.Parent = RightArm
  469. RIGHTARMLERP.Part0 = RightArm
  470. RIGHTARMLERP.Part1 = Torso
  471. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  472.  
  473. local LEFTARMLERP = Instance.new("ManualWeld")
  474. LEFTARMLERP.Parent = LeftArm
  475. LEFTARMLERP.Part0 = LeftArm
  476. LEFTARMLERP.Part1 = Torso
  477. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  478.  
  479. local RIGHTLEGLERP = Instance.new("ManualWeld")
  480. RIGHTLEGLERP.Parent = RightLeg
  481. RIGHTLEGLERP.Part0 = RightLeg
  482. RIGHTLEGLERP.Part1 = Torso
  483. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  484.  
  485. local LEFTLEGLERP = Instance.new("ManualWeld")
  486. LEFTLEGLERP.Parent = LeftLeg
  487. LEFTLEGLERP.Part0 = LeftLeg
  488. LEFTLEGLERP.Part1 = Torso
  489. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  490.  
  491. local function weldBetween(a, b)
  492. local weld = Instance.new("ManualWeld", a)
  493. weld.Part0 = a
  494. weld.Part1 = b
  495. weld.C0 = a.CFrame:inverse() * b.CFrame
  496. return weld
  497. end
  498.  
  499. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  500. A = Instance.new("Attachment", PARENT)
  501. A.Position = POSITION1
  502. A.Name = "A"
  503. B = Instance.new("Attachment", PARENT)
  504. B.Position = POSITION2
  505. B.Name = "B"
  506. tr1 = Instance.new("Trail", PARENT)
  507. tr1.Attachment0 = A
  508. tr1.Attachment1 = B
  509. tr1.Enabled = true
  510. tr1.Lifetime = LIFETIME
  511. tr1.TextureMode = "Static"
  512. tr1.LightInfluence = 0
  513. tr1.Color = COLOR
  514. tr1.Transparency = NumberSequence.new(0, 1)
  515. end
  516.  
  517. introsound = Instance.new("Sound",Head)
  518. introsound.SoundId = "rbxassetid://236146895"
  519. introsound.Volume = 8
  520. introsound:Play()
  521.  
  522.  
  523. fedora = Instance.new("Part",Character)
  524. fedora.Size = Vector3.new(2,2,2)
  525. fedora.CFrame = Head.CFrame
  526. fedora.CanCollide = false
  527. fedora.Transparency = 1
  528. fedoraweld = Instance.new("Weld",fedora)
  529. fedoraweld.Part0 = fedora
  530. fedoraweld.Part1 = Head
  531. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.75,0)
  532. mfedora = Instance.new("SpecialMesh")
  533. mfedora.MeshType = "FileMesh"
  534. mfedora.Scale = Vector3.new(.97, .97, .97)
  535. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  536.  
  537. shades = Instance.new("Part",Character)
  538. shades.Size = Vector3.new(2,2,2)
  539. shades.CFrame = Head.CFrame
  540. shades.CanCollide = false
  541. shades.Transparency = 1
  542. shadesweld = Instance.new("Weld",shades)
  543. shadesweld.Part0 = shades
  544. shadesweld.Part1 = Head
  545. shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15)
  546. mshades = Instance.new("SpecialMesh")
  547. mshades.MeshType = "FileMesh"
  548. mshades.Scale = Vector3.new(1.04, 1.28, 1.04)
  549. mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349'
  550.  
  551. for i,v in pairs(Character:GetChildren()) do
  552. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  553. v:Remove()
  554. end
  555. end
  556.  
  557. coroutine.wrap(function()
  558. while wait() do
  559. hum.WalkSpeed = ws
  560. LeftArm.BrickColor = BrickColor.new("Really black")
  561. RightArm.BrickColor = BrickColor.new("Really black")
  562. Head.BrickColor = BrickColor.new("White")
  563. Torso.BrickColor = BrickColor.new("Really black")
  564. LeftLeg.BrickColor = BrickColor.new("Really black")
  565. RightLeg.BrickColor = BrickColor.new("Really black")
  566. end
  567. end)()
  568. godmode = coroutine.wrap(function()
  569. for i,v in pairs(Character:GetChildren()) do
  570. if v:IsA("BasePart") and v ~= Root then
  571. v.Anchored = false
  572. end
  573. end
  574. while true do
  575. hum.MaxHealth = math.huge
  576. wait(0.0000001)
  577. hum.Health = math.huge
  578. wait()
  579. end
  580. end)
  581. godmode()
  582. ff = Instance.new("ForceField", Character)
  583. ff.Visible = false
  584.  
  585. coroutine.wrap(function()
  586. for i,v in pairs(Character:GetChildren()) do
  587. if v.Name == "Animate" then v:Remove()
  588. end
  589. end
  590. end)()
  591.  
  592. function damagealll(Radius,Position)
  593. local Returning = {}
  594. for _,v in pairs(workspace:GetChildren()) do
  595. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  596. if v:FindFirstChild("Torso") then
  597. local Mag = (v.Torso.Position - Position).magnitude
  598. if Mag < Radius then
  599. table.insert(Returning,v)
  600. end
  601. elseif v:FindFirstChild("UpperTorso") then
  602. local Mag = (v.UpperTorso.Position - Position).magnitude
  603. if Mag < Radius then
  604. table.insert(Returning,v)
  605. end
  606. end
  607. end
  608. end
  609. return Returning
  610. end
  611.  
  612. ArtificialHB = Instance.new("BindableEvent", script)
  613. ArtificialHB.Name = "Heartbeat"
  614. script:WaitForChild("Heartbeat")
  615.  
  616. frame = 1 / 60
  617. tf = 0
  618. allowframeloss = false
  619. tossremainder = false
  620.  
  621.  
  622. lastframe = tick()
  623. script.Heartbeat:Fire()
  624.  
  625.  
  626. game:GetService("RunService").Heartbeat:connect(function(s, p)
  627. tf = tf + s
  628. if tf >= frame then
  629. if allowframeloss then
  630. script.Heartbeat:Fire()
  631. lastframe = tick()
  632. else
  633. for i = 1, math.floor(tf / frame) do
  634. script.Heartbeat:Fire()
  635. end
  636. lastframe = tick()
  637. end
  638. if tossremainder then
  639. tf = 0
  640. else
  641. tf = tf - frame * math.floor(tf / frame)
  642. end
  643. end
  644. end)
  645.  
  646. function swait(num)
  647. if num == 0 or num == nil then
  648. game:service("RunService").Stepped:wait(0)
  649. else
  650. for i = 0, num do
  651. game:service("RunService").Stepped:wait(0)
  652. end
  653. end
  654. end
  655.  
  656. for _,n in pairs(Character:GetChildren()) do
  657. if n:IsA("Accessory") then n:Remove() end
  658. end
  659. for _,x in pairs(Character:GetChildren()) do
  660. if x:IsA("Decal") then x:Remove() end
  661. end
  662.  
  663. intro = true
  664. ws = 0
  665.  
  666. bigfedora = Instance.new("Part",Character)
  667. bigfedora.Size = Vector3.new(2,2,2)
  668. bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
  669. bigfedora.CanCollide = false
  670. bigfedora.Anchored = true
  671. bigfedora.Name = "mbigf"
  672. mbigfedora = Instance.new("SpecialMesh", bigfedora)
  673. mbigfedora.MeshType = "FileMesh"
  674. mbigfedora.Scale = Vector3.new(6, 7, 7)
  675. mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  676. for i,v in pairs(Character:GetDescendants()) do
  677. if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
  678. end
  679. end
  680. for i = 1, 60 do
  681. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
  682. swait()
  683. end
  684. wait(.25)
  685. for i = 1, 50 do
  686. bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(fedora.Position),.05)
  687. swait()
  688. end
  689. zmc = 0
  690. for i = 1, 29 do
  691. zmc = zmc + 2
  692. mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
  693. bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
  694. swait()
  695. end
  696. bigfedora:Remove()
  697.  
  698. ws = 14
  699.  
  700. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  701. so = Instance.new("Sound")
  702. so.Parent = PARENT
  703. so.SoundId = "rbxassetid://"..ID
  704. so.Volume = VOL
  705. so.Looped = LOOP
  706.  
  707. so:Play()
  708. removeuseless:AddItem(so,REMOVE)
  709. end
  710.  
  711. mouse.KeyDown:connect(function(Press)
  712. Press=Press:lower()
  713. if Press=='k' then
  714. if dancing then
  715. dancing = false
  716. else
  717. dancing = true
  718. ws = 0
  719. change = .5
  720. attacking = true
  721. jam = Instance.new("Sound",Torso)
  722. jam.SoundId = "rbxassetid://665751753"
  723. jam.Volume = 8
  724. jam.Looped = true
  725. jam.TimePosition = 22.3
  726. jam:Play()
  727. lol90 = 0
  728. coroutine.wrap(function()
  729. while dancing do
  730. lol90 = lol90 + 11
  731. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25)
  732. ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
  733. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25)
  734. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25)
  735. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25)
  736. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25)
  737. swait()
  738. end
  739. ws = 14
  740. jam:Remove()
  741. ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  742. attacking = false
  743. end)()
  744. end
  745. end
  746. end)
  747.  
  748. mouse.KeyDown:connect(function(Press)
  749. Press=Press:lower()
  750. if Press=='j' then
  751. if dancing then
  752. dancing = false
  753. else
  754. dancing = true
  755. ws = 3
  756. change = .5
  757. attacking = true
  758. g1 = Instance.new("BodyGyro", Root)
  759. g1.D = 175
  760. g1.P = 20000
  761. g1.MaxTorque = Vector3.new(0,9000,0)
  762. herecomesthemoney = Instance.new("Sound",Torso)
  763. herecomesthemoney.Pitch = 1
  764. herecomesthemoney.SoundId = "rbxassetid://2426693638"
  765. herecomesthemoney.Volume = 8
  766. herecomesthemoney.Looped = true
  767. herecomesthemoney:Play()
  768. robuxpile = Instance.new("Part",Torso)
  769. robuxpile.Size = Vector3.new(1,1,1)
  770. robuxpile.CFrame = LeftArm.CFrame
  771. robuxpile.CanCollide = false
  772. robuxpileweld = Instance.new("Weld",robuxpile)
  773. robuxpileweld.Part0 = robuxpile
  774. robuxpileweld.Part1 = Torso
  775. robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
  776. mrobuxpile = Instance.new("SpecialMesh", robuxpile)
  777. mrobuxpile.MeshType = "FileMesh"
  778. mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
  779. mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
  780. coroutine.wrap(function()
  781. coroutine.wrap(function()
  782. while wait(.35) do
  783. if not dancing then break end
  784. local robux = Instance.new("Part",Torso)
  785. robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
  786. robux.Anchored = false
  787. robux.CanCollide = true
  788. robux.Size = Vector3.new(1,1,1)
  789. removeuseless:AddItem(robux,4)
  790. mrobux = Instance.new("SpecialMesh", robux)
  791. mrobux.MeshType = "FileMesh"
  792. mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
  793. mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
  794. bov = Instance.new("BodyVelocity",robux)
  795. bov.maxForce = Vector3.new(99999,99999,99999)
  796. robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
  797. bov.velocity = robux.CFrame.lookVector*45
  798. removeuseless:AddItem(bov,.1)
  799. end
  800. end)()
  801. while dancing do
  802. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
  803. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25)
  804. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25)
  805. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
  806. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
  807. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.25)
  808. swait()
  809. end
  810. ws = 14
  811. removeuseless:AddItem(g1,.001)
  812. robuxpile:Remove()
  813. attacking = false
  814. end)()
  815. end
  816. end
  817. end)
  818.  
  819. mouse.KeyDown:connect(function(Press)
  820. Press=Press:lower()
  821. if Press=='h' then
  822. if dancing then
  823. dancing = false
  824. else
  825. dancing = true
  826. ws = 0
  827. change = .5
  828. attacking = true
  829. jellyfishjam = Instance.new("Sound",Torso)
  830. jellyfishjam.SoundId = "rbxassetid://840189092"
  831. jellyfishjam.Volume = 8
  832. jellyfishjam.Looped = true
  833. jellyfishjam.TimePosition = 14.8
  834. jellyfishjam:Play()
  835. coroutine.wrap(function()
  836. while dancing do
  837. for i = 1, 15 do
  838. if not dancing then break end
  839. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25)
  840. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  841. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  842. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25)
  843. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25)
  844. swait()
  845. end
  846. for i = 1, 15 do
  847. if not dancing then break end
  848. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
  849. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  850. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  851. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25)
  852. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
  853. swait()
  854. end
  855. for i = 1, 15 do
  856. if not dancing then break end
  857. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25)
  858. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  859. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  860. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
  861. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25)
  862. swait()
  863. end
  864. for i = 1, 15 do
  865. if not dancing then break end
  866. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
  867. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
  868. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
  869. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3)
  870. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25)
  871. swait()
  872. end
  873. swait()
  874. end
  875. ws = 14
  876. attacking = false
  877. end)()
  878. end
  879. end
  880. end)
  881.  
  882. mouse.KeyDown:connect(function(Press)
  883. Press=Press:lower()
  884. if Press=='g' then
  885. if dancing then
  886. dancing = false
  887. else
  888. dancing = true
  889. ws = 0
  890. change = .5
  891. attacking = true
  892. deadmau7 = Instance.new("Sound",Torso)
  893. deadmau7.SoundId = "rbxassetid://168166611"
  894. deadmau7.Volume = 8
  895. deadmau7.Looped = true
  896. deadmau7:Play()
  897. coroutine.wrap(function()
  898. coroutine.wrap(function()
  899. while dancing do
  900. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25)
  901. swait()
  902. end
  903. end)()
  904. while dancing do
  905. for i = 1, 28 do
  906. if not dancing then break end
  907. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
  908. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
  909. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25)
  910. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3)
  911. swait()
  912. end
  913. for i = 1, 28 do
  914. if not dancing then break end
  915. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
  916. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
  917. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25)
  918. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25)
  919. swait()
  920. end
  921. swait()
  922. end
  923. ws = 14
  924. deadmau7:Remove()
  925. attacking = false
  926. end)()
  927. end
  928. end
  929. end)
  930.  
  931. mouse.KeyDown:connect(function(Press)
  932. Press=Press:lower()
  933. if Press=='f' then
  934. if dancing then
  935. dancing = false
  936. else
  937. dancing = true
  938. ws = 6
  939. change = .5
  940. attacking = true
  941. bennyhill = Instance.new("Sound",Torso)
  942. bennyhill.SoundId = "rbxassetid://138211362"
  943. bennyhill.Volume = 8
  944. bennyhill.Looped = true
  945. bennyhill:Play()
  946. coroutine.wrap(function()
  947. while dancing do
  948. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25)
  949. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25)
  950. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine/2)),0,math.rad(0)),.25)
  951. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25)
  952. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25)
  953. swait()
  954. end
  955. ws = 14
  956. bennyhill:Remove()
  957. attacking = false
  958. end)()
  959. end
  960. end
  961. end)
  962.  
  963. mouse.KeyDown:connect(function(Press)
  964. Press=Press:lower()
  965. if Press=='p' then
  966. if dancing then
  967. dancing = false
  968. else
  969. dancing = true
  970. ws = 0
  971. change = .5
  972. attacking = true
  973. barrelspin = 0
  974. barrelrollsound = Instance.new("Sound",Torso)
  975. barrelrollsound.SoundId = "rbxassetid://505320170"
  976. barrelrollsound.Volume = 8
  977. barrelrollsound.Looped = true
  978. barrelrollsound:Play()
  979. barrol = Instance.new("Part",Torso)
  980. barrol.Size = Vector3.new(1,1,1)
  981. barrol.CFrame = Torso.CFrame
  982. barrol.CanCollide = false
  983. barrolweld = Instance.new("Weld",barrol)
  984. barrolweld.Part0 = barrol
  985. barrolweld.Part1 = Torso
  986. barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
  987. mbarrol = Instance.new("SpecialMesh", barrol)
  988. mbarrol.MeshType = "FileMesh"
  989. mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
  990. mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
  991. coroutine.wrap(function()
  992. while dancing do
  993. ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25)
  994. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  995. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
  996. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
  997. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
  998. swait()
  999. end
  1000. ws = 14
  1001. barrol:Remove()
  1002. attacking = false
  1003. end)()
  1004. end
  1005. end
  1006. end)
  1007.  
  1008. mouse.KeyDown:connect(function(Press)
  1009. Press=Press:lower()
  1010. if Press=='q' then
  1011. if dancing then
  1012. dancing = false
  1013. else
  1014. dancing = true
  1015. ws = 0
  1016. change = .5
  1017. spinningmove = 0
  1018. dbwouldlovethis = Instance.new("Sound",Torso)
  1019. dbwouldlovethis.SoundId = "rbxassetid://1532157598"
  1020. dbwouldlovethis.Volume = 8
  1021. dbwouldlovethis.Looped = true
  1022. dbwouldlovethis:Play()
  1023. attacking = true
  1024. coroutine.wrap(function()
  1025. while dancing do
  1026. spinningmove = spinningmove + 10
  1027. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
  1028. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  1029. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2)
  1030. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3)
  1031. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3)
  1032. swait()
  1033. end
  1034. ws = 14
  1035. dbwouldlovethis:Remove()
  1036. attacking = false
  1037. end)()
  1038. end
  1039. end
  1040. end)
  1041.  
  1042.  
  1043. mouse.KeyDown:connect(function(Press)
  1044. Press=Press:lower()
  1045. if Press=='u' then
  1046. if dancing then
  1047. dancing = false
  1048. else
  1049. dancing = true
  1050. ws = 6
  1051. change = .5
  1052. attacking = true
  1053. slavdance = Instance.new("Sound",Torso)
  1054. slavdance.SoundId = "rbxassetid://2341226836"
  1055. slavdance.Volume = 6
  1056. slavdance.Looped = true
  1057. slavdance:Play()
  1058. coroutine.wrap(function()
  1059. while dancing do
  1060. for i = 1, 17 do
  1061. if not dancing then break end
  1062. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  1063. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  1064. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
  1065. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
  1066. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
  1067. swait()
  1068. end
  1069. for i = 1, 17 do
  1070. if not dancing then break end
  1071. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
  1072. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
  1073. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
  1074. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
  1075. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
  1076. swait()
  1077. end
  1078. swait()
  1079. end
  1080. ws = 14
  1081. slavdance:Remove()
  1082. attacking = false
  1083. end)()
  1084. end
  1085. end
  1086. end)
  1087.  
  1088. mouse.KeyDown:connect(function(Press)
  1089. Press=Press:lower()
  1090. if Press=='y' then
  1091. if dancing then
  1092. dancing = false
  1093. else
  1094. dancing = true
  1095. ws = 0
  1096. change = .5
  1097. walkforward = 0
  1098. walkrotation = 0
  1099. attacking = true
  1100. truelegend = Instance.new("Sound",Torso)
  1101. truelegend.SoundId = "rbxassetid://487872908"
  1102. truelegend.TimePosition = 13.98
  1103. truelegend.Volume = 8
  1104. truelegend.Looped = true
  1105. truelegend:Play()
  1106. coroutine.wrap(function()
  1107. while dancing do
  1108. for i = 1, 100 do
  1109. if not dancing then break end
  1110. walkforward = walkforward + .1
  1111. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  1112. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  1113. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1114. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  1115. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  1116. swait()
  1117. end
  1118. for i = 1, 50 do
  1119. if not dancing then break end
  1120. walkrotation = walkrotation + 15
  1121. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  1122. swait()
  1123. end
  1124. walkrotation = 0
  1125. for i = 1, 100 do
  1126. if not dancing then break end
  1127. walkforward = walkforward - .1
  1128. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  1129. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  1130. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
  1131. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
  1132. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
  1133. swait()
  1134. end
  1135. for i = 1, 50 do
  1136. if not dancing then break end
  1137. walkrotation = walkrotation + 15
  1138. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
  1139. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
  1140. swait()
  1141. end
  1142. walkrotation = 0
  1143. swait()
  1144. end
  1145. ws = 14
  1146. truelegend:Remove()
  1147. attacking = false
  1148. end)()
  1149. end
  1150. end
  1151. end)
  1152.  
  1153. mouse.KeyDown:connect(function(Press)
  1154. Press=Press:lower()
  1155. if Press=='t' then
  1156. if dancing then
  1157. dancing = false
  1158. else
  1159. dancing = true
  1160. ws = 0
  1161. change = .5
  1162. attacking = true
  1163. plummusic = Instance.new("Sound",Torso)
  1164. plummusic.Volume = 8
  1165. plummusic.Looped = true
  1166. plummusic.SoundId = "rbxassetid://2526093213"
  1167. plummusic:Play()
  1168. coroutine.wrap(function()
  1169. while dancing do
  1170. for i = 1, 20 do
  1171. if not dancing then break end
  1172. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  1173. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  1174. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2)
  1175. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
  1176. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
  1177. swait()
  1178. end
  1179. for i = 1, 20 do
  1180. if not dancing then break end
  1181. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
  1182. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
  1183. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2)
  1184. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
  1185. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
  1186. swait()
  1187. end
  1188. swait()
  1189. end
  1190. ws = 14
  1191. plummusic:Remove()
  1192. attacking = false
  1193. end)()
  1194. end
  1195. end
  1196. end)
  1197.  
  1198. mouse.KeyDown:connect(function(Press)
  1199. Press=Press:lower()
  1200. if Press=='e' then
  1201. if dancing then
  1202. dancing = false
  1203. else
  1204. dancing = true
  1205. ws = 0
  1206. change = .5
  1207. attacking = true
  1208. mrozo = Instance.new("Sound",Torso)
  1209. mrozo.Volume = 8
  1210. mrozo.SoundId = "rbxassetid://335701357"
  1211. mrozo.Looped = true
  1212. mrozo.TimePosition = 10
  1213. mrozo:Play()
  1214. coroutine.wrap(function()
  1215. while dancing do
  1216. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
  1217. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
  1218. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2)
  1219. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
  1220. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
  1221. swait()
  1222. end
  1223. mrozo:Remove()
  1224. ws = 14
  1225. attacking = false
  1226. end)()
  1227. end
  1228. end
  1229. end)
  1230.  
  1231. mouse.KeyDown:connect(function(Press)
  1232. Press=Press:lower()
  1233. if Press=='r' then
  1234. if dancing then
  1235. dancing = false
  1236. else
  1237. ws = 6
  1238. recordbaby = 0
  1239. dancing = true
  1240. change = .5
  1241. attacking = true
  1242. spinme = Instance.new("Sound",Torso)
  1243. spinme.Volume = 8
  1244. spinme.SoundId = "rbxassetid://145799973"
  1245. spinme.Looped = true
  1246. spinme:Play()
  1247. coroutine.wrap(function()
  1248. while dancing do
  1249. recordbaby = recordbaby + 10
  1250. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
  1251. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
  1252. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3)
  1253. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  1254. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  1255. swait()
  1256. end
  1257. spinme:Remove()
  1258. ws = 14
  1259. attacking = false
  1260. end)()
  1261. end
  1262. end
  1263. end)
  1264.  
  1265. function ray(pos, dir, rang, ignoredesc)
  1266. return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  1267. end
  1268.  
  1269. function ray2(startpos, endpos, distance, ignore)
  1270. local dir = CFrame.new(startpos,endpos).lookVector
  1271. return ray(startpos, dir, distance, ignore)
  1272. end
  1273.  
  1274. checks1 = coroutine.wrap(function() -------Checks
  1275. while true do
  1276. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  1277. if Root.Velocity.y > 1 then
  1278. position = "Jump"
  1279. elseif Root.Velocity.y < -1 then
  1280. position = "Falling"
  1281. elseif Root.Velocity.Magnitude < 2 then
  1282. position = "Idle"
  1283. elseif Root.Velocity.Magnitude > 2 then
  1284. position = "Walking"
  1285. elseif Root.Velocity.Magnitude > 20 then
  1286. position = "Running"
  1287. else
  1288. end
  1289. wait()
  1290. end
  1291. end)
  1292. checks1()
  1293.  
  1294. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1295. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1296. end
  1297.  
  1298. function ray2(StartPos, EndPos, Distance, Ignore)
  1299. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  1300. return ray(StartPos, DIRECTION, Distance, Ignore)
  1301. end
  1302.  
  1303. OrgnC0 = Neck.C0
  1304. local movelimbs = coroutine.wrap(function()
  1305. while RunSrv.RenderStepped:wait() do
  1306. TrsoLV = Torso.CFrame.lookVector
  1307. Dist = nil
  1308. Diff = nil
  1309. if not MseGuide then
  1310. else
  1311. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  1312. Dist = (Head.CFrame.p-Point).magnitude
  1313. Diff = Head.CFrame.Y-Point.Y
  1314. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  1315. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  1316. Diff2 = LeftArm.CFrame.Y-Point.Y
  1317. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1318. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  1319. end
  1320. end
  1321. end)
  1322. movelimbs()
  1323. immortal = {}
  1324. for i,v in pairs(Character:GetDescendants()) do
  1325. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  1326. if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  1327. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1328. end
  1329. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  1330. elseif v:IsA("JointInstance") then
  1331. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  1332. end
  1333. end
  1334. for e = 1, #immortal do
  1335. if immortal[e] ~= nil then
  1336. local STUFF = immortal[e]
  1337. local PART = STUFF[1]
  1338. local PARENT = STUFF[2]
  1339. local MATERIAL = STUFF[3]
  1340. local COLOR = STUFF[4]
  1341. local TRANSPARENCY = STUFF[5]
  1342. if levitate then
  1343. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  1344. PART.Material = MATERIAL
  1345. PART.Color = COLOR
  1346. PART.Transparency = TRANSPARENCY
  1347. end
  1348. PART.AncestryChanged:connect(function()
  1349. PART.Parent = PARENT
  1350. end)
  1351. else
  1352. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  1353. PART.Material = MATERIAL
  1354. PART.Color = COLOR
  1355. PART.Transparency = TRANSPARENCY
  1356. end
  1357. PART.AncestryChanged:connect(function()
  1358. PART.Parent = PARENT
  1359. end)
  1360. end
  1361. end
  1362. end
  1363. function immortality()
  1364. for e = 1, #immortal do
  1365. if immortal[e] ~= nil then
  1366. local STUFF = immortal[e]
  1367. local PART = STUFF[1]
  1368. local PARENT = STUFF[2]
  1369. local MATERIAL = STUFF[3]
  1370. local COLOR = STUFF[4]
  1371. local TRANSPARENCY = STUFF[5]
  1372. if PART.ClassName == "Part" and PART == Root then
  1373. PART.Material = MATERIAL
  1374. PART.Color = COLOR
  1375. PART.Transparency = TRANSPARENCY
  1376. end
  1377. if PART.Parent ~= PARENT then
  1378. hum:Remove()
  1379. PART.Parent = PARENT
  1380. hum = Instance.new("Humanoid",Character)
  1381. end
  1382. end
  1383. end
  1384. end
  1385. coroutine.wrap(function()
  1386. while true do
  1387. if hum.Health < .1 then
  1388. deadsound = Instance.new("Sound", Torso)
  1389. deadsound.Volume = 6
  1390. deadsound.SoundId = "rbxassetid://1411352723"
  1391. deadsound:Play()
  1392. immortality()
  1393. end
  1394. wait()
  1395. end
  1396. end)()
  1397.  
  1398. local anims = coroutine.wrap(function()
  1399. while true do
  1400. settime = 0.05
  1401. sine = sine + change
  1402. if position == "Jump" and attacking == false then
  1403. change = 1
  1404. spin = false
  1405. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1406. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1407. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1408. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1409. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1410. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  1411. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  1412. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  1413. elseif position == "Falling" and attacking == false then
  1414. change = 1
  1415. spin = false
  1416. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1417. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  1418. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1419. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1420. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1421. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1422. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  1423. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  1424. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  1425. elseif position == "Walking" and attacking == false and running == false then
  1426. change = 1.2
  1427. walking = true
  1428. spin = false
  1429. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1430. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3)
  1431. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
  1432. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
  1433. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
  1434. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
  1435. elseif position == "Idle" and attacking == false and running == false then
  1436. change = .5
  1437. spin = true
  1438. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1439. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
  1440. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
  1441. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1)
  1442. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
  1443. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
  1444. elseif position == "Running" and attacking == false then
  1445. change = 1
  1446. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  1447. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1448. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  1449. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1450. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  1451. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  1452. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  1453. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  1454. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  1455. end
  1456. swait()
  1457. end
  1458. end)
  1459. anims()
  1460.  
  1461. end)--spawnfunction end important shit for not lag
Add Comment
Please, Sign In to add comment