Advertisement
Lollddsf

sonic

Aug 27th, 2021 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.90 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.  
  408. FELOADLIBRARY = {}
  409. loadstring(game:GetObjects("rbxassetid://5209815302")[1].Source)()
  410.  
  411. wait(0.07)
  412. Player=game:GetService("Players").LocalPlayer
  413. Character=Player.Character.Dummy
  414. PlayerGui=Player.PlayerGui
  415. Backpack=Player.Backpack
  416. Torso=Character.Torso
  417. Head=Character.Head
  418. Humanoid=Character.Humanoid
  419. LeftArm=Character["Left Arm"]
  420. LeftLeg=Character["Left Leg"]
  421. RightArm=Character["Right Arm"]
  422. RightLeg=Character["Right Leg"]
  423. LS=Torso["Left Shoulder"]
  424. LH=Torso["Left Hip"]
  425. RS=Torso["Right Shoulder"]
  426. RH=Torso["Right Hip"]
  427. Face = Head.face
  428. Neck=Torso.Neck
  429. it=Instance.new
  430. attacktype=1
  431. attacktype2=1
  432. vt=Vector3.new
  433. cf=CFrame.new
  434. cn=CFrame.new
  435. euler=CFrame.fromEulerAnglesXYZ
  436. angles=CFrame.Angles
  437. combo = 0
  438. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  439. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  440. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  441. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  442. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  443. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  444. RootPart=Character.HumanoidRootPart
  445. RootJoint=RootPart.RootJoint
  446. RootCF=euler(-1.57,0,3.14)
  447. attack = false
  448. attackdebounce = false
  449. trispeed=.2
  450. attackmode='none'
  451. local idle=0
  452. local Anim="Idle"
  453. stance = false
  454. local ff = 2
  455. noleg = false
  456. evadecooldown = false
  457. Humanoid.Animator.Parent = nil
  458. equip = false
  459. local Effects = {}
  460. attackspeed = 0.14
  461. df = false
  462. Swing = 1
  463. local sine = 0
  464. local change = 1
  465. local val = 0
  466. local speed = 0
  467. local rs = game:GetService("RunService").RenderStepped
  468. cam = workspace.CurrentCamera
  469. local Create = FELOADLIBRARY.Create
  470. deb = game:GetService("Debris")
  471. Face.Transparency = 0
  472. --Face.Texture = "rbxassetid://176217905" --176217905
  473. Humanoid.WalkSpeed = 64
  474. local freefall = 0
  475. local headsunsound = RootPart:FindFirstChild("Running") or Instance.new("Sound",RootPart)
  476. headsunsound.SoundId = "rbxassetid://758199523"
  477. headsunsound.Volume = 2
  478. local boost = false
  479. Humanoid.JumpPower = 88
  480. local musicnum = 1
  481.  
  482. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  483. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  484. local GravPoint = RootPart.Velocity.y
  485. local NV = Vector3.new(0,0,0)
  486.  
  487. music = Instance.new("Sound",RootPart)
  488. music.Volume = 1
  489. music.TimePosition = 0
  490. music.Pitch = 1
  491. music.SoundId = "rbxassetid://1251555494"
  492. music.Looped = true
  493. music:Play()
  494.  
  495.  
  496. boostsound = Instance.new("Sound",RootPart)
  497. boostsound.Volume = .6
  498. boostsound.TimePosition = 0
  499. boostsound.Pitch = 1
  500. boostsound.SoundId = "rbxassetid://924922553"
  501. boostsound.Looped = false
  502.  
  503.  
  504.  
  505. stompsound = Instance.new("Sound",RootPart)
  506. stompsound.Volume = 2
  507. stompsound.TimePosition = 0
  508. stompsound.Pitch = 1
  509. stompsound.SoundId = "rbxassetid://1295424184"
  510. stompsound.Looped = false
  511.  
  512.  
  513.  
  514. so = function(id,par,vol,pit)
  515. coroutine.resume(coroutine.create(function()
  516. local sou = Instance.new("Sound",par or workspace)
  517. sou.Volume=vol
  518. sou.Pitch=pit or 1
  519. sou.SoundId=id
  520. sou:play()
  521. game:GetService("Debris"):AddItem(sou,8)
  522. end))
  523. end
  524.  
  525. --save shoulders
  526. RSH, LSH=nil, nil
  527. --welds
  528. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  529. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  530. LH=Torso["Left Hip"]
  531. RH=Torso["Right Hip"]
  532. TorsoColor=Torso.BrickColor
  533. function NoOutline(Part)
  534. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  535. end
  536. player=Player
  537. ch=Character
  538. RSH=ch.Torso["Right Shoulder"]
  539. LSH=ch.Torso["Left Shoulder"]
  540. --
  541. RSH.Parent=nil
  542. LSH.Parent=nil
  543. --
  544. RW.Name="Right Shoulder"
  545. RW.Part0=ch.Torso
  546. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  547. RW.C1=cf(0, 0.5, 0)
  548. RW.Part1=ch["Right Arm"]
  549. RW.Parent=ch.Torso
  550. --
  551. LW.Name="Left Shoulder"
  552. LW.Part0=ch.Torso
  553. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  554. LW.C1=cf(0, 0.5, 0)
  555. LW.Part1=ch["Left Arm"]
  556. LW.Parent=ch.Torso
  557.  
  558.  
  559. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  560. local wld = Instance.new("Weld", wp1)
  561. wld.Part0 = wp0
  562. wld.Part1 = wp1
  563. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  564. end
  565. local rs = game:GetService("RunService").RenderStepped
  566.  
  567. newWeld(RootPart, Torso, 0, -1, 0)
  568. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  569. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  570. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  571. newWeld(Torso, RightLeg, 0.5, -1, 0)
  572. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  573.  
  574. Player=game:GetService('Players').LocalPlayer
  575. Character=Player.Character
  576. mouse=Player:GetMouse()
  577. m=Instance.new('Model',Character)
  578.  
  579.  
  580. local function weldBetween(a, b)
  581. local weldd = Instance.new("ManualWeld")
  582. weldd.Part0 = a
  583. weldd.Part1 = b
  584. weldd.C0 = CFrame.new()
  585. weldd.C1 = b.CFrame:inverse() * a.CFrame
  586. weldd.Parent = a
  587. return weldd
  588. end
  589.  
  590. ArtificialHB = Instance.new("BindableEvent", script)
  591. ArtificialHB.Name = "Heartbeat"
  592.  
  593. script:WaitForChild("Heartbeat")
  594.  
  595. frame = 1 / 80
  596. tf = 0
  597. allowframeloss = false
  598. tossremainder = false
  599. lastframe = tick()
  600. script.Heartbeat:Fire()
  601. game:GetService("RunService").Heartbeat:connect(function(s, p)
  602. tf = tf + s
  603. if tf >= frame then
  604. if allowframeloss then
  605. script.Heartbeat:Fire()
  606. lastframe = tick()
  607. else
  608. for i = 1, math.floor(tf / frame) do
  609. script.Heartbeat:Fire()
  610. end
  611. lastframe = tick()
  612. end
  613. if tossremainder then
  614. tf = 0
  615. else
  616. tf = tf - frame * math.floor(tf / frame)
  617. end
  618. end
  619. end)
  620.  
  621. --[[]
  622. function swait(num)
  623. if num == 0 or num == nil then
  624. ArtificialHB.Event:wait()
  625. else
  626. for i = 0, num do
  627. ArtificialHB.Event:wait()
  628. end
  629. end
  630. end
  631.  
  632. ]]
  633.  
  634.  
  635.  
  636.  
  637. function swait(num)
  638. if num == 0 or num == nil then
  639. game:service("RunService").Stepped:wait()
  640. else
  641. for i = 0, num do
  642. game:service("RunService").Stepped:wait()
  643. end
  644. end
  645. end
  646.  
  647. function RemoveOutlines(part)
  648. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  649. end
  650.  
  651.  
  652. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  653. local fp = it("Part")
  654. fp.formFactor = formfactor
  655. fp.Parent = parent
  656. fp.Reflectance = reflectance
  657. fp.Transparency = transparency
  658. fp.CanCollide = false
  659. fp.Locked = true
  660. fp.BrickColor = brickcolor
  661. fp.Name = name
  662. fp.Size = size
  663. fp.Position = Torso.Position
  664. NoOutline(fp)
  665. if fp.BrickColor == BrickColor.new("Dark indigo") then
  666. fp.Material = "Neon"
  667. else
  668. if fp.BrickColor == BrickColor.new("Really black") then
  669. fp.BrickColor = BrickColor.new("Really black")
  670. fp.Material = "Metal"
  671. else
  672. fp.Material = "Neon"
  673. end
  674. end
  675. fp:BreakJoints()
  676. return fp
  677. end
  678.  
  679. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  680. local mesh = it(Mesh)
  681. mesh.Parent = part
  682. if Mesh == "SpecialMesh" then
  683. mesh.MeshType = meshtype
  684. mesh.MeshId = meshid
  685. end
  686. mesh.Offset = offset
  687. mesh.Scale = scale
  688. return mesh
  689. end
  690.  
  691. weld = function(parent, part0, part1, c0)
  692. local weld = it("Weld")
  693. weld.Parent = parent
  694. weld.Part0 = part0
  695. weld.Part1 = part1
  696. weld.C0 = c0
  697. return weld
  698. end
  699.  
  700. F1 = Instance.new("Folder", Character)
  701. F1.Name = "Effects Folder"
  702. F2 = Instance.new("Folder", F1)
  703. F2.Name = "Effects"
  704. Triangle = function(a, b, c)
  705. end
  706.  
  707. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  708. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  709. prt.Anchored = true
  710. prt.CanCollide = false
  711. prt.CFrame = cframe
  712. prt.Name = "prt"
  713. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  714. game:GetService("Debris"):AddItem(prt, 5)
  715. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  716. end
  717.  
  718.  
  719.  
  720. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  721. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  722. prt.Anchored = true
  723. prt.CanCollide = false
  724. prt.CFrame = cframe
  725. prt.Name = "prt"
  726. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  727. game:GetService("Debris"):AddItem(prt, 5)
  728. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  729. end
  730.  
  731. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  732. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  733. prt.Anchored = true
  734. prt.CFrame = cframe
  735. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  736. game:GetService("Debris"):AddItem(prt, 5)
  737. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  738. end
  739.  
  740. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  741. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  742. prt.Anchored = true
  743. prt.CFrame = cframe
  744. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  745. game:GetService("Debris"):AddItem(prt, 5)
  746. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  747. end
  748.  
  749. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  750. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 5)
  755. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  756. end
  757.  
  758. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  759. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  760. prt.Anchored = true
  761. prt.CFrame = cframe
  762. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  763. game:GetService("Debris"):AddItem(prt, 5)
  764. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  765. end
  766.  
  767. ElecEffect = function(cff, x, y, z)
  768. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  769. prt.Anchored = true
  770. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  771. prt.CFrame = cf(prt.Position)
  772. game:GetService("Debris"):AddItem(prt, 2)
  773. xval = math.random() / 2
  774. yval = math.random() / 2
  775. zval = math.random() / 2
  776. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  777. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  778. end
  779.  
  780. function FindNearestTorso(Position, Distance, SinglePlayer)
  781. if SinglePlayer then
  782. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  783. end
  784. local List = {}
  785. for i, v in pairs(workspace:GetChildren()) do
  786. if v:IsA("Model") then
  787. if v:findFirstChild("Torso") then
  788. if v ~= Character then
  789. if (v.Torso.Position - Position).magnitude <= Distance then
  790. table.insert(List, v)
  791. end
  792. end
  793. end
  794. end
  795. end
  796. return List
  797. end
  798.  
  799.  
  800. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  801. local Part = Create("Part"){
  802. Parent = Parent,
  803. Reflectance = Reflectance,
  804. Transparency = Transparency,
  805. CanCollide = false,
  806. Locked = true,
  807. BrickColor = BrickColor.new(tostring(BColor)),
  808. Name = Name,
  809. Size = Size,
  810. Material = Material,
  811. }
  812. RemoveOutlines(Part)
  813. return Part
  814. end
  815.  
  816. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  817. local Msh = Create(Mesh){
  818. Parent = Part,
  819. Offset = OffSet,
  820. Scale = Scale,
  821. }
  822. if Mesh == "SpecialMesh" then
  823. Msh.MeshType = MeshType
  824. Msh.MeshId = MeshId
  825. end
  826. return Msh
  827. end
  828.  
  829.  
  830.  
  831. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  832. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  833. prt.Anchored = true
  834. prt.CFrame = cframe
  835. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  836. game:GetService("Debris"):AddItem(prt, 10)
  837. if Type == 1 or Type == nil then
  838. table.insert(Effects, {
  839. prt,
  840. "Block1",
  841. delay,
  842. x3,
  843. y3,
  844. z3,
  845. msh
  846. })
  847. elseif Type == 2 then
  848. table.insert(Effects, {
  849. prt,
  850. "Block2",
  851. delay,
  852. x3,
  853. y3,
  854. z3,
  855. msh
  856. })
  857. end
  858. end
  859.  
  860. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  861. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  862. prt.Anchored = true
  863. prt.CFrame = cframe
  864. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  865. game:GetService("Debris"):AddItem(prt, 10)
  866. table.insert(Effects, {
  867. prt,
  868. "Cylinder",
  869. delay,
  870. x3,
  871. y3,
  872. z3,
  873. msh
  874. })
  875. end
  876.  
  877. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay,material)
  878. local prt=CreatePart(workspace,material,0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  879. prt.Anchored=true
  880. prt.CFrame=cframe
  881. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  882. game:GetService("Debris"):AddItem(prt,2)
  883. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  884. for i=0,1,delay do
  885. swait()
  886. Part.Transparency=i
  887. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  888. end
  889. Part.Parent=nil
  890. end),prt,msh,(math.random(0,1)+math.random())/5)
  891. end
  892.  
  893. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  894. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  895. prt.Anchored = true
  896. prt.CFrame = cframe
  897. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  898. game:GetService("Debris"):AddItem(prt, 10)
  899. table.insert(Effects, {
  900. prt,
  901. "Cylinder",
  902. delay,
  903. x3,
  904. y3,
  905. z3,
  906. msh
  907. })
  908. end
  909.  
  910. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  911. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  912. prt.Anchored = true
  913. prt.CFrame = cframe
  914. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  915. game:GetService("Debris"):AddItem(prt, 10)
  916. table.insert(Effects, {
  917. prt,
  918. "Cylinder",
  919. delay,
  920. x3,
  921. y3,
  922. z3,
  923. msh
  924. })
  925. end
  926.  
  927. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  928. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  929. prt.Anchored = true
  930. prt.CFrame = cframe
  931. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  932. game:GetService("Debris"):AddItem(prt, 10)
  933. table.insert(Effects, {
  934. prt,
  935. "Cylinder",
  936. delay,
  937. x3,
  938. y3,
  939. z3,
  940. msh
  941. })
  942. end
  943.  
  944.  
  945. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  946. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  947. prt.Anchored = true
  948. prt.CFrame = cframe
  949. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  950. game:GetService("Debris"):AddItem(prt, 10)
  951. table.insert(Effects, {
  952. prt,
  953. "Cylinder",
  954. delay,
  955. x3,
  956. y3,
  957. z3,
  958. msh
  959. })
  960. end
  961.  
  962. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  963. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  964. prt.Anchored = true
  965. prt.CFrame = cframe
  966. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  967. game:GetService("Debris"):AddItem(prt, 10)
  968. table.insert(Effects, {
  969. prt,
  970. "Cylinder",
  971. delay,
  972. x3,
  973. y3,
  974. z3,
  975. msh
  976. })
  977. end
  978.  
  979. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  980. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  981. prt.Anchored = true
  982. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  983. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  984. local num = math.random(10, 50) / 1000
  985. game:GetService("Debris"):AddItem(prt, 10)
  986. table.insert(Effects, {
  987. prt,
  988. "Shatter",
  989. num,
  990. prt.CFrame,
  991. math.random() - math.random(),
  992. 0,
  993. math.random(50, 100) / 100
  994. })
  995. end
  996.  
  997. local lerp = function(a, b, t)
  998. return a * (1 - t) + b * t
  999. end
  1000.  
  1001. function clerp(a,b,t)
  1002. local qa = {QuaternionFromCFrame(a)}
  1003. local qb = {QuaternionFromCFrame(b)}
  1004. local ax, ay, az = a.x, a.y, a.z
  1005. local bx, by, bz = b.x, b.y, b.z
  1006. local _t = 1-t
  1007. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1008. end
  1009.  
  1010. function QuaternionFromCFrame(cf)
  1011. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1012. local trace = m00 + m11 + m22
  1013. if trace > 0 then
  1014. local s = math.sqrt(1 + trace)
  1015. local recip = 0.5/s
  1016. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1017. else
  1018. local i = 0
  1019. if m11 > m00 then
  1020. i = 1
  1021. end
  1022. if m22 > (i == 0 and m00 or m11) then
  1023. i = 2
  1024. end
  1025. if i == 0 then
  1026. local s = math.sqrt(m00-m11-m22+1)
  1027. local recip = 0.5/s
  1028. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1029. elseif i == 1 then
  1030. local s = math.sqrt(m11-m22-m00+1)
  1031. local recip = 0.5/s
  1032. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1033. elseif i == 2 then
  1034. local s = math.sqrt(m22-m00-m11+1)
  1035. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1036. end
  1037. end
  1038. end
  1039.  
  1040.  
  1041. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1042. local xs, ys, zs = x + x, y + y, z + z
  1043. local wx, wy, wz = w*xs, w*ys, w*zs
  1044. local xx = x*xs
  1045. local xy = x*ys
  1046. local xz = x*zs
  1047. local yy = y*ys
  1048. local yz = y*zs
  1049. local zz = z*zs
  1050. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1051. end
  1052. function QuaternionSlerp(a, b, t)
  1053. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1054. local startInterp, finishInterp;
  1055. if cosTheta >= 0.0001 then
  1056. if (1 - cosTheta) > 0.0001 then
  1057. local theta = math.acos(cosTheta)
  1058. local invSinTheta = 1/math.sin(theta)
  1059. startInterp = math.sin((1-t)*theta)*invSinTheta
  1060. finishInterp = math.sin(t*theta)*invSinTheta
  1061. else
  1062. startInterp = 1-t
  1063. finishInterp = t
  1064. end
  1065. else
  1066. if (1+cosTheta) > 0.0001 then
  1067. local theta = math.acos(-cosTheta)
  1068. local invSinTheta = 1/math.sin(theta)
  1069. startInterp = math.sin((t-1)*theta)*invSinTheta
  1070. finishInterp = math.sin(t*theta)*invSinTheta
  1071. else
  1072. startInterp = t-1
  1073. finishInterp = t
  1074. end
  1075. end
  1076. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1077. end
  1078.  
  1079. function weld5(part0, part1, c0, c1)
  1080. weeld=Instance.new("Weld", part0)
  1081. weeld.Part0=part0
  1082. weeld.Part1=part1
  1083. weeld.C0=c0
  1084. weeld.C1=c1
  1085. return weeld
  1086. end
  1087.  
  1088. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1089.  
  1090. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1091. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1092. end
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100. local f = 0
  1101. local b = Instance.new("BlurEffect",cam)
  1102. local c = Instance.new('PointLight', Torso)
  1103. c.Range = 16
  1104. c.Color = Color3.new(0, 1,1)
  1105. c.Brightness = 1.5
  1106. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  1107.  
  1108. b.Size = b.Size - 4
  1109. if boost == true then
  1110. c.Enabled = true
  1111. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  1112. -- cam.FieldOfView = 110
  1113. freefall = 0
  1114. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,3),0.25)
  1115. SphereEffect(BrickColor.new("Cyan"),RightLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  1116. SphereEffect(BrickColor.new("Cyan"),LeftLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  1117. if hitfloor ~= nil and Anim ~= "runIdle" then
  1118. SpecialEffect(BrickColor.new("Cyan"),RootPart.CFrame*CFrame.new(0,-3.4,.78) ,2,2,2, 1.5,1.5,1.5,.09)
  1119. end
  1120. end
  1121. if boost == false then
  1122. cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  1123. --cam.FieldOfView = 70
  1124. c.Enabled = false
  1125. end
  1126. end)
  1127.  
  1128.  
  1129.  
  1130. mouse.KeyDown:connect(function(key)
  1131. if string.byte(key) == 48 then
  1132. b.Size = 40
  1133. Swing = 2
  1134. freefall = 0
  1135.  
  1136. coroutine.resume(coroutine.create(function()
  1137. for i = 0,1,0.1 do
  1138. swait()
  1139. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  1140. end
  1141. end))
  1142. Humanoid.WalkSpeed = 180
  1143. RootPart.Velocity = RootPart.CFrame.lookVector*150
  1144. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 8, 8, 8, 0.14,"Neon")
  1145. boost = true
  1146. boostsound:Play()
  1147. end
  1148. end)
  1149.  
  1150. mouse.KeyUp:connect(function(key)
  1151. if string.byte(key) == 48 then
  1152. Swing = 1
  1153. Humanoid.WalkSpeed = 64
  1154. boost = false
  1155. boostsound:Stop()
  1156.  
  1157. end
  1158. end)
  1159.  
  1160.  
  1161.  
  1162.  
  1163. mouse.KeyDown:connect(function(key)
  1164. if string.byte(key) == 50 then
  1165. b.Size = 40
  1166. freefall = 0
  1167. Swing = 2
  1168.  
  1169. coroutine.resume(coroutine.create(function()
  1170. for i = 0,1,0.1 do
  1171. swait()
  1172. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8)),0.48)
  1173. end
  1174. end))
  1175.  
  1176. Humanoid.WalkSpeed = 320
  1177. RootPart.Velocity = RootPart.CFrame.lookVector*550
  1178. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  1179. RingEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,0,-11.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  1180. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-13.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  1181. boost = true
  1182. boostsound:Play()
  1183. end
  1184. end)
  1185.  
  1186. mouse.KeyUp:connect(function(key)
  1187. if string.byte(key) == 50 then
  1188. Swing = 1
  1189. Humanoid.WalkSpeed = 64
  1190. boost = false
  1191. boostsound:Stop()
  1192.  
  1193. end
  1194. end)
  1195.  
  1196.  
  1197. local lastwall = nil
  1198. local jumped = false
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205. local vwall = false
  1206.  
  1207. mouse.KeyDown:connect(function(key)
  1208. if key == 'b' and hitfloor == nil and attack == false then
  1209. vrun()
  1210. end
  1211. end)
  1212.  
  1213.  
  1214. function vrun()
  1215. local ray = Ray.new(
  1216. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1217. )
  1218. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1219.  
  1220. if hit then
  1221. if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.CanCollide == true then
  1222. vwall = true
  1223. local NV = Vector3.new(0,0,0)
  1224. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  1225. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1226. local GravPoint = RootPart.Velocity.y
  1227. local velo = Instance.new("BodyVelocity",Torso)
  1228. velo.MaxForce = Vector3.new(400000,400000,400000)
  1229.  
  1230. attack = true
  1231. while vwall == true and ray and hit do
  1232. swait()
  1233. change = 0.84+ Humanoid.WalkSpeed/132
  1234. if Humanoid.WalkSpeed > 40 and Humanoid.WalkSpeed < 70 then
  1235. velo.Velocity = Vector3.new(0,40,0)
  1236. end
  1237. if Humanoid.WalkSpeed > 70 and Humanoid.WalkSpeed < 200 then
  1238. velo.Velocity = Vector3.new(0,80,0)
  1239. end
  1240. if Humanoid.WalkSpeed > 200 then
  1241. velo.Velocity = Vector3.new(0,130,0)
  1242. end
  1243. ray = Ray.new(
  1244. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1245. )
  1246. hit, position, normal = workspace:FindPartOnRay(ray, character)
  1247. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), .6) * angles(math.rad(96), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1248. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  1249. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  1250. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  1251. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3+ Humanoid.WalkSpeed/272)
  1252. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3+ Humanoid.WalkSpeed/272)
  1253. end
  1254. velo:Destroy()
  1255. wait(0.07)
  1256.  
  1257. if vwall == false then
  1258.  
  1259. RootPart.Velocity = -RootPart.CFrame.lookVector*68 + Vector3.new(0,86,0)
  1260.  
  1261. --[[]
  1262. for i = 0,5,0.2 do
  1263. rs:wait()
  1264. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  1268. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1269. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1270. end
  1271. ]]
  1272.  
  1273.  
  1274. for i = 0,4,0.1 do
  1275. swait()
  1276. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1277. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  1278. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1279. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1280. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1281. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1282. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1283. end
  1284.  
  1285. attack = false
  1286.  
  1287.  
  1288. end
  1289.  
  1290.  
  1291. if vwall == true then
  1292. RootPart.Velocity = RootPart.CFrame.lookVector*38 + Vector3.new(0,86,0)
  1293.  
  1294. --[[]
  1295. for i = 0,5,0.2 do
  1296. rs:wait()
  1297. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  1298. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1299. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  1300. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  1301. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1302. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1303. end
  1304. ]]
  1305.  
  1306.  
  1307. for i = 0,4,0.15 do
  1308. swait()
  1309. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1310. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6)
  1311. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1312. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1313. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1314. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1315. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1316. end
  1317.  
  1318. attack = false
  1319.  
  1320. end
  1321.  
  1322.  
  1323. end
  1324. end
  1325. end
  1326.  
  1327.  
  1328.  
  1329.  
  1330. mouse.KeyUp:connect(function(key)
  1331. if key == 'b' and vwall == true then
  1332. vwall = false
  1333. end
  1334. end)
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340. function Ldash()
  1341.  
  1342.  
  1343.  
  1344. evadecooldown = true
  1345. attack = true
  1346. k = math.random(1,2)
  1347. if k == 1 then
  1348. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1349. else
  1350. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1351. end
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357. --+173.8*i
  1358. for i = 0,.7,0.1 do
  1359. swait()
  1360. Head.Velocity = Head.CFrame.rightVector * -135
  1361. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
  1362. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
  1363. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(30)),.2)
  1364. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)),.2)
  1365. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
  1366. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
  1367. end
  1368.  
  1369. attack = false
  1370. wait(0.08)
  1371. evadecooldown = false
  1372.  
  1373.  
  1374. end
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380. function Rdash()
  1381.  
  1382.  
  1383.  
  1384. evadecooldown = true
  1385. attack = true
  1386. k = math.random(1,2)
  1387. if k == 1 then
  1388. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1389. else
  1390. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1391. end
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397. --+173.8*i
  1398. for i = 0,.7,0.1 do
  1399. swait()
  1400. Head.Velocity = Head.CFrame.rightVector * 135
  1401. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
  1402. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
  1403. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)),.2)
  1404. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(-30)),.2)
  1405. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
  1406. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
  1407. end
  1408.  
  1409. attack = false
  1410. wait(0.08)
  1411. evadecooldown = false
  1412.  
  1413.  
  1414. end
  1415. local sliding = false
  1416.  
  1417.  
  1418. function Slide()
  1419.  
  1420. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  1421. spd = spd + 30
  1422. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1423. local GravPoint = RootPart.Velocity.y
  1424. if spd > 40 and hitfloor ~= nil then
  1425. noleg = true
  1426.  
  1427. attack = true
  1428. k = math.random(1,2)
  1429. if k == 1 then
  1430. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1431. else
  1432. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1433. end
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444. local NV = Vector3.new(0,0,0)
  1445. local bv = Instance.new("BodyVelocity", Torso)
  1446. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1447. bv.velocity = dir*spd
  1448. local bg = Instance.new("BodyGyro", Torso)
  1449. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1450. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1451. headsunsound.SoundId = "rbxassetid://1295468446"
  1452. headsunsound.TimePosition = 0
  1453.  
  1454. Humanoid.PlatformStand = true
  1455. while spd > 2 and hitfloor ~= nil and sliding == true do
  1456. swait()
  1457. spd = spd - 0.95
  1458. bv.velocity = dir*spd + Vector3.new(0,0,0)
  1459. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1460. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(12)), 0.2)
  1461. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(34),math.rad(0),math.rad(12)),.2)
  1462. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(70)),.2)
  1463. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1464. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1465. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.56, -0.2) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  1466. end
  1467. bv:Destroy()
  1468. bg:Destroy()
  1469. headsunsound.SoundId = "rbxassetid://758199523"
  1470. headsunsound.TimePosition = 0
  1471. Humanoid.PlatformStand = false
  1472. attack = false
  1473. sliding = false
  1474. wait(0.05)
  1475. evadecooldown = false
  1476.  
  1477.  
  1478. end
  1479. end
  1480.  
  1481. function land()
  1482. attack = true
  1483. RootPart.Velocity = Vector3.new(0,0,0)
  1484. WaveEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,-1,0) , 1, 1, 1, 3, 0.8, 3, 0.06)
  1485. so("http://www.roblox.com/asset/?id=1295424585", Torso, 3.5, 1)
  1486.  
  1487. coroutine.resume(coroutine.create(function()
  1488. for i = 0,1,0.1 do
  1489. swait()
  1490. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8)),0.44)
  1491. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.5)
  1492. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(0)),.5)
  1493. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.5)
  1494. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.5)
  1495. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.5)
  1496. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.5)
  1497.  
  1498. end
  1499. attack = false
  1500.  
  1501.  
  1502. end))
  1503.  
  1504.  
  1505.  
  1506. end
  1507.  
  1508.  
  1509.  
  1510.  
  1511. function stomp()
  1512. attack = true
  1513. stompsound:Play()
  1514.  
  1515. while hitfloor == nil do
  1516. swait()
  1517. b.Size = 12
  1518. WaveEffect(BrickColor.new("Cyan"), LeftLeg.CFrame*CFrame.new(0,-2.4,0) , 1, 1, 1, 0.8, 0.8, 0.8, 0.14)
  1519. RootPart.Velocity = Vector3.new(0,RootPart.Velocity.y/1.6,0) +Vector3.new(0,-150,0)
  1520. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1521. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(0+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1522. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1523. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1524. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1525. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(0+4*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1526. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, .27+0.17*math.cos(sine/1.3), -0.56) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1527.  
  1528. end
  1529. stompsound:Stop()
  1530. land()
  1531.  
  1532.  
  1533. end
  1534.  
  1535.  
  1536. function changemusic()
  1537. musicnum = musicnum + 1
  1538. music.TimePosition = 0
  1539. local osix = false
  1540. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude
  1541. if musicnum > 14 then
  1542. musicnum = 1
  1543. end
  1544. if musicnum == 1 then
  1545. music.SoundId = "rbxassetid://179029173"
  1546. end
  1547. if musicnum == 2 then
  1548. music.SoundId = "rbxassetid://146443855"
  1549. end
  1550. if musicnum == 3 then
  1551. music.SoundId = "rbxassetid://1342408291"
  1552. end
  1553. if musicnum == 4 then
  1554. music.SoundId = "rbxassetid://201219416"
  1555. end
  1556. if musicnum == 5 then
  1557. music.SoundId = "rbxassetid://1390472571"
  1558. end
  1559. if musicnum == 6 then
  1560. osix = true
  1561. music.SoundId = "rbxassetid://249974783"
  1562. end
  1563. if musicnum == 7 then
  1564. music.SoundId = "rbxassetid://1851880603"
  1565. end
  1566. if musicnum == 8 then
  1567. music.SoundId = "rbxassetid://412034984"
  1568. end
  1569. if musicnum == 9 then
  1570. music.SoundId = "rbxassetid://536915629"
  1571. end
  1572. if musicnum == 10 then
  1573. music.SoundId = "rbxassetid://1200005861"
  1574. end
  1575. if musicnum == 11 then
  1576. music.SoundId = "rbxassetid://1055930631"
  1577. end
  1578. if musicnum == 12 then
  1579. music.SoundId = "rbxassetid://300269553"
  1580. end
  1581. if musicnum == 13 then
  1582. music.SoundId = "rbxassetid://199897052"
  1583. end
  1584. if musicnum == 14 then
  1585. music.SoundId = "rbxassetid://638115895"
  1586. end
  1587.  
  1588. if spd < 14 then
  1589. Humanoid.Jump = true
  1590.  
  1591. if osix == false then
  1592. so("rbxassetid://537371462",RootPart,2,1)
  1593. end
  1594.  
  1595.  
  1596. RootPart.Velocity = Vector3.new(0,102,0)
  1597. attack = true
  1598. wait(0.08)
  1599. for i = 0,7,0.1 do
  1600. swait()
  1601. RootPart.Velocity = Vector3.new(0,2,0)
  1602. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1603. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6)
  1604. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1605. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1606. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1607. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1608. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1609.  
  1610. end
  1611. b.Size = 40
  1612. MoonEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06)
  1613.  
  1614. if osix == true then
  1615. osix = false
  1616. so("rbxassetid://156821036",RootPart,2,1)
  1617. end
  1618.  
  1619. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1620. for i = 0,5,0.1 do
  1621. swait()
  1622. RootPart.Velocity = Vector3.new(0,3.5,0)
  1623. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1624. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1625. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1626. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1627. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1628. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1629. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1630. end
  1631. attack = false
  1632. end
  1633. end
  1634.  
  1635.  
  1636. mouse.KeyDown:connect(function(key)
  1637. if key == 'q' and attack == false and evadecooldown == false then
  1638. Ldash()
  1639. end
  1640. end)
  1641.  
  1642.  
  1643.  
  1644. mouse.KeyDown:connect(function(key)
  1645. if key == 'e' and attack == false and evadecooldown == false then
  1646. Rdash()
  1647. end
  1648. end)
  1649.  
  1650. mouse.KeyDown:connect(function(key)
  1651. if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then
  1652. sliding = true
  1653. Slide()
  1654. end
  1655. end)
  1656.  
  1657. mouse.KeyDown:connect(function(key)
  1658. if key == 'c' and attack == false and hitfloor == nil then
  1659. stomp()
  1660. end
  1661. end)
  1662.  
  1663.  
  1664. local walljump = false
  1665.  
  1666.  
  1667. function walljumpp()
  1668. local ray = Ray.new(
  1669. Torso.CFrame.p, RootPart.CFrame.lookVector *5
  1670. )
  1671. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1672.  
  1673. if hit then
  1674. if hit.Parent.Parent ~= Character and hit.Parent ~= Character then
  1675. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1676. GravPoint = 0
  1677. freefall = 0
  1678. walljump = true
  1679. Humanoid.AutoRotate = false
  1680. local velo = Instance.new("BodyVelocity",Torso)
  1681. velo.MaxForce = Vector3.new(400000,400000,400000)
  1682. --game.Debris:AddItem(velo,0.1)
  1683. attack = true
  1684. while hitfloor == nil and walljump == true and ray and hit do
  1685. swait()
  1686. freefall = 0
  1687. GravPoint = GravPoint - 0.36
  1688. ray = Ray.new(
  1689. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1690. )
  1691. hit, position, normal = workspace:FindPartOnRay(ray, character)
  1692. velo.Velocity = vt(0,GravPoint,0)
  1693. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.9) * CFrame.Angles(math.rad(5), math.rad(90), math.rad(8)), 0.2)
  1694. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2)
  1695. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2)
  1696. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1697. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(14), math.rad(-12)), 0.2)
  1698. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(23)), 0.2)
  1699. end
  1700. if walljump == false then
  1701. k = math.random(1,3)
  1702. if k == 1 then
  1703. so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1)
  1704. else if k == 2 then
  1705. so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1)
  1706. else if k == 3 then
  1707. so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1)
  1708. end
  1709. end
  1710. end
  1711.  
  1712. velo:Destroy()
  1713. attack = false
  1714. coroutine.resume(coroutine.create(function()
  1715. for i = 0,1,0.1 do
  1716. swait()
  1717. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1718. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  1719. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1720. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1721. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1722. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1723. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1724. end
  1725. end))
  1726.  
  1727. Humanoid.AutoRotate = true
  1728. RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0)
  1729. wait(0.07)
  1730. RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector)
  1731. end
  1732. if walljump == true then
  1733. attack = false
  1734. walljump = false
  1735. Humanoid.AutoRotate = true
  1736. velo:Destroy()
  1737. end
  1738. end
  1739. end
  1740. end
  1741.  
  1742.  
  1743. local homed = nil
  1744. function home()
  1745. if walljump ~= true then
  1746. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do
  1747. if v:FindFirstChild('Head') then
  1748. Grabbed = true
  1749. homed = v
  1750. end
  1751. end
  1752.  
  1753. if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then
  1754. so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8)
  1755. local SBall = Instance.new("Part",Character)
  1756. SBall.Name = "Homing Ball"
  1757. SBall.CanCollide = false
  1758. SBall.Anchored = false
  1759. SBall.Transparency = 0.64
  1760. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1761. SBall.BrickColor = BrickColor.new("Toothpaste")
  1762. SBall.Size = Vector3.new(1,1,1)
  1763. SBall.Material = "Neon"
  1764. SBallweld = Instance.new("Weld")
  1765. SBallweld.Parent = SBall
  1766. SBallweld.Part0 = RootPart
  1767. SBallweld.Part1 = SBall
  1768. SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1769. SBallweld.Part0 = RootPart
  1770. local SBallmesh = Instance.new("SpecialMesh",SBall)
  1771. SBallmesh.MeshType = "Sphere"
  1772. SBallmesh.Scale = Vector3.new(6,6,6)
  1773. trail = Instance.new("Trail", Character)
  1774. a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0)
  1775. a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0)
  1776. trail.Texture = "rbxassetid://0"
  1777. trail.Attachment0 = a2
  1778. trail.Attachment1 = a3
  1779. trail.Lifetime = 0.353
  1780. trail.MinLength = 0.03
  1781. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)})
  1782. trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0))
  1783. trail.LightEmission = 4.8
  1784. trail.TextureLength = 0.034
  1785. trail.Enabled = true
  1786. attack = true
  1787. local position = Instance.new("BodyPosition",Torso)
  1788. position.P = 68350
  1789. position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1790.  
  1791. while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do
  1792. swait()
  1793. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1794. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+420*math.abs(sine/3.2)), math.rad(0), math.rad(0)), 0.6)
  1795. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1796. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1797. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1798. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1799. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1800. position.Position = homed.Torso.Position + Vector3.new(0,2,0)
  1801. end
  1802. local bodvol=Instance.new("BodyVelocity")
  1803. bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0)
  1804. bodvol.P= 35200
  1805. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1806. bodvol.Parent=homed.Head
  1807. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1808. --homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30))
  1809.  
  1810. position:Destroy()
  1811. trail.Enabled = false
  1812. SBall:Destroy()
  1813. RootPart.Velocity = Vector3.new(0,93.5,0)
  1814. coroutine.resume(coroutine.create(function()
  1815. for i = 0,5,0.26 do
  1816. swait()
  1817. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1818. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1819. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1820. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1821. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1822. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1823. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1824. end
  1825. homed = nil
  1826. attack = false
  1827. end))
  1828.  
  1829. end
  1830.  
  1831. end
  1832.  
  1833.  
  1834. end
  1835.  
  1836. mouse.KeyDown:connect(function(key)
  1837. wait(0.16)
  1838. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1839. walljumpp()
  1840. end
  1841. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1842. home()
  1843. end
  1844.  
  1845. if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then
  1846. walljump = false
  1847. end
  1848. end)
  1849.  
  1850.  
  1851.  
  1852. mouse.KeyDown:connect(function(key)
  1853. if key == 'm' and attack == false then
  1854. changemusic()
  1855. end
  1856. end)
  1857.  
  1858. local MutedMusic = false
  1859. mouse.KeyDown:connect(function(key)
  1860. if key == 'n' then
  1861. if not MutedMusic then
  1862. MutedMusic = true
  1863. music.Volume = 0
  1864. elseif MutedMusic then
  1865. MutedMusic = false
  1866. music.Volume = 1
  1867. end
  1868. end
  1869. end)
  1870.  
  1871.  
  1872.  
  1873.  
  1874. mouse.KeyUp:connect(function(key)
  1875. wait(0.05)
  1876. if key == 'c' and sliding == true then
  1877. sliding = false
  1878. end
  1879. end)
  1880. local look = 0
  1881.  
  1882.  
  1883.  
  1884. while true do
  1885. swait()
  1886. sine = sine + change
  1887. --speed = speed + music.PlaybackLoudness/90
  1888. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1889. local velderp=RootPart.Velocity.y
  1890. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1891.  
  1892. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1893.  
  1894. local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1895. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character)
  1896.  
  1897. local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1898. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character)
  1899.  
  1900. local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0))
  1901. local start, position = workspace:FindPartOnRay(waterthing, character)
  1902.  
  1903. if start ~= nil and start.Material == "Water" then
  1904.  
  1905. RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0)
  1906.  
  1907. end
  1908.  
  1909. headsunsound.Pitch = 0.76 + Humanoid.WalkSpeed/124
  1910. if torvel<1 and Swing == 2 then
  1911. boost = false
  1912. elseif torvel>1 and Swing == 2 then
  1913. boost = true
  1914. freefall = 0
  1915. end
  1916. if hitfloor ~= nil and freefall < 150 then
  1917. freefall = 0
  1918. end
  1919. if freefall > 150 and hitfloor ~= nil then
  1920. land()
  1921. freefall = 0
  1922. end
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1931. Anim="Jump"
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937. if attack==false then
  1938. change = 1
  1939. look = 0
  1940. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1941. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
  1942. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
  1943. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
  1944. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
  1945. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1946. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1947. end
  1948.  
  1949. elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then
  1950. Anim="Fall"
  1951. change = 1
  1952. freefall = freefall +0.77
  1953.  
  1954.  
  1955. if attack==false then
  1956. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1957. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1958. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1959. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1960. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1961. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1962. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1963. end
  1964.  
  1965.  
  1966.  
  1967. elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then
  1968. Anim="FreeFall"
  1969. change = 1
  1970.  
  1971.  
  1972. if attack==false then
  1973. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1974. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-90+3*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1975. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(110)), 0.07)
  1976. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(-110)), 0.07)
  1977. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1978. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3),0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(3), math.rad(-46)), 0.1)
  1979. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.17*math.cos(sine/1.3), 0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(46)), 0.1)
  1980. end
  1981.  
  1982. elseif torvel<1 and hitfloor~=nil then
  1983. Anim="Idle"
  1984. change = 1
  1985. if attack==false and equip == false then
  1986.  
  1987. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1988. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0-0.81*math.cos(sine/40)), math.rad(-40), math.rad(0)), 0.1)
  1989. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+2.6*math.sin(sine/40)),math.rad(0),math.rad(40)),0.1)
  1990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(-2+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(6.3+2.2*math.cos(sine/40))),0.1)
  1991. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(2+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(-6.3-2.2*math.cos(sine/40))),0.1)
  1992. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, llegendPoint.Y-LeftLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(18+0.81*math.cos(sine/40)), math.rad(-2-0.81*math.cos(sine/40))),0.1)
  1993. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, rlegendPoint.Y-RightLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(-2+0.81*math.cos(sine/40)), math.rad(3-0.81*math.cos(sine/40))),0.1)
  1994. end
  1995.  
  1996.  
  1997.  
  1998. elseif torvel>1.5 and torvel<70 and hitfloor~=nil then
  1999. Anim="Walk"
  2000. change = 0.84+ Character.Humanoid.WalkSpeed/132
  2001. look = 0
  2002. if attack==false and equip == false then
  2003. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  2004. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), -.8) * angles(math.rad(-26), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  2005. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  2006. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  2007. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  2008. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  2009. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  2010. end
  2011.  
  2012.  
  2013. elseif torvel>=70 and torvel<200 and hitfloor~=nil then
  2014. Anim="Run"
  2015. change = 0.84+ Character.Humanoid.WalkSpeed/142
  2016. if attack==false and equip == false then
  2017. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  2018. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1.5), -.8) * angles(math.rad(-37), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  2019. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1.5)),math.rad(0),math.rad(0+5*math.sin(sine/3)) + RootPart.RotVelocity.Y / 13),.1)
  2020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(1+0*math.cos(sine/3))- RootPart.RotVelocity.Y / 34),.25)
  2021. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-1+0*math.cos(sine/3))+ RootPart.RotVelocity.Y / -34),.25)
  2022. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.32*math.cos(sine/3), 0-0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0+134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.44)
  2023. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.32*math.cos(sine/3),0+0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0-134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.44)
  2024. end
  2025.  
  2026. --[[
  2027. if attack==false then
  2028. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  2029. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  2030. end
  2031. ]]
  2032. if attack==true and noleg == false then
  2033. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  2034. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  2035. end
  2036.  
  2037.  
  2038.  
  2039. elseif torvel>=200 and hitfloor~=nil then
  2040. Anim="MachRun"
  2041. change = 0.84+ Character.Humanoid.WalkSpeed/182
  2042. if attack==false and equip == false then
  2043. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  2044. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1), -3.8) * angles(math.rad(-44), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .2)
  2045. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1)),math.rad(0),math.rad(0+5*math.sin(sine/2)) + RootPart.RotVelocity.Y / 13),.2)
  2046. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(-24+0*math.cos(sine/2))- RootPart.RotVelocity.Y / 34),.35)
  2047. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.5)*angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(24+0*math.cos(sine/2))+ RootPart.RotVelocity.Y / -34),.35)
  2048. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.42*math.cos(sine/2), 0-0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0+134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.52)
  2049. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.42*math.cos(sine/2),0+0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0-134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.52)
  2050. end
  2051.  
  2052.  
  2053.  
  2054. end
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064. if 0 < #Effects then
  2065. for e = 1, #Effects do
  2066. if Effects[e] ~= nil then
  2067. local Thing = Effects[e]
  2068. if Thing ~= nil then
  2069. local Part = Thing[1]
  2070. local Mode = Thing[2]
  2071. local Delay = Thing[3]
  2072. local IncX = Thing[4]
  2073. local IncY = Thing[5]
  2074. local IncZ = Thing[6]
  2075. if Thing[1].Transparency <= 1 then
  2076. if Thing[2] == "Block1" then
  2077. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2078. Mesh = Thing[1]:FindFirstChild("Mesh")
  2079. if not Mesh then
  2080. Mesh = Instance.new("BlockMesh")
  2081. end
  2082. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2083. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2084. elseif Thing[2] == "Cylinder" then
  2085. Mesh = Thing[1]:FindFirstChild("Mesh")
  2086. if not Mesh then
  2087. Mesh = Instance.new("BlockMesh")
  2088. end
  2089. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2090. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2091. elseif Thing[2] == "Blood" then
  2092. Mesh = Thing[1]:FindFirstChild("Mesh")
  2093. if not Mesh then
  2094. Mesh = Instance.new("BlockMesh")
  2095. end
  2096. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  2097. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2098. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2099. elseif Thing[2] == "Elec" then
  2100. Mesh = Thing[1]:FindFirstChild("Mesh")
  2101. if not Mesh then
  2102. Mesh = Instance.new("BlockMesh")
  2103. end
  2104. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  2105. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2106. elseif Thing[2] == "Disappear" then
  2107. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2108. end
  2109. else
  2110. Part.Parent = nil
  2111. game:GetService("Debris"):AddItem(Part, 0)
  2112. table.remove(Effects, e)
  2113. end
  2114. end
  2115. end
  2116. end
  2117. end
  2118.  
  2119. end
  2120.  
  2121. end)--spawnfunction end important shit for not lag
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement