Advertisement
PasterXIV

Untitled

Sep 7th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. local Players = game:GetService("Players")
  88. local MainCmd = "script"
  89. local CmdSub = #MainCmd + 1
  90.  
  91. for _, Child in pairs(script:GetChildren()) do
  92. if Child:IsA("Script") then
  93. Child.Disabled = true
  94. end
  95. end
  96.  
  97. function OnChatted(owner, message)
  98. if message:sub(1, CmdSub) == MainCmd .."/" then
  99. local scriptChildren = script:GetChildren()
  100. for _, Child in pairs(scriptChildren) do
  101. if message:sub(CmdSub + 1) == Child.Name:lower() then
  102. local New = Child:Clone()
  103. New.Parent = owner.Backpack or owner.PlayerGui
  104. New.Disabled = false
  105. end
  106. end
  107. end
  108. end
  109.  
  110. function ConnectPlr(name)
  111. for _, PossiblePlayer in pairs(Players:GetChildren()) do
  112. if PossiblePlayer:IsA("Player") then
  113. local Player = PossiblePlayer
  114. if Player.Name == name then
  115. Player.Chatted:Connect(function(MESSAGE)
  116. OnChatted(Player, MESSAGE:lower())
  117. end)
  118. else
  119. error("No player found!")
  120. end
  121. end
  122. end
  123. end
  124.  
  125. return ConnectPlr
  126. wait(1)
  127. Player=owner
  128. Character=Player.Character
  129. PlayerGui=Player.PlayerGui
  130. Backpack=Player.Backpack
  131. Torso=Character.Torso
  132. Head=Character.Head
  133. Humanoid=Character.Humanoid
  134. LeftArm=Character["Left Arm"]
  135. LeftLeg=Character["Left Leg"]
  136. RightArm=Character["Right Arm"]
  137. RightLeg=Character["Right Leg"]
  138. LS=Torso["Left Shoulder"]
  139. LH=Torso["Left Hip"]
  140. RS=Torso["Right Shoulder"]
  141. RH=Torso["Right Hip"]
  142. Face = Head.face
  143. Neck=Torso.Neck
  144. it=Instance.new
  145. attacktype=1
  146. attacktype2=1
  147. vt=Vector3.new
  148. cf=CFrame.new
  149. cn=CFrame.new
  150. euler=CFrame.fromEulerAnglesXYZ
  151. angles=CFrame.Angles
  152. combo = 0
  153. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  154. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  155. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  156. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  157. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  158. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  159. RootPart=Character.HumanoidRootPart
  160. RootJoint=RootPart.RootJoint
  161. RootCF=euler(-1.57,0,3.14)
  162. attack = false
  163. attackdebounce = false
  164. trispeed=.2
  165. attackmode='none'
  166. local idle=0
  167. local Anim="Idle"
  168. stance = false
  169. local ff = 2
  170. noleg = false
  171. evadecooldown = false
  172. Humanoid.Animator.Parent = nil
  173. equip = false
  174. local Effects = {}
  175. attackspeed = 0.14
  176. df = false
  177. Swing = 1
  178. local sine = 0
  179. local change = 1
  180. local val = 0
  181. local speed = 0
  182. local rs = game:GetService("RunService").RenderStepped
  183. cam = workspace.CurrentCamera
  184. local RbxUtility = LoadLibrary("RbxUtility")
  185. local Create = RbxUtility.Create
  186. deb = game:GetService("Debris")
  187. Face.Transparency = 0
  188. --Face.Texture = "rbxassetid://176217905" --176217905
  189. Humanoid.WalkSpeed = 64
  190. local freefall = 0
  191. Head.Running.SoundId = "rbxassetid://758199523"
  192. Head.Running.Volume = 2
  193. local boost = false
  194. Humanoid.JumpPower = 88
  195. local musicnum = 1
  196.  
  197. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  198. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  199. local GravPoint = RootPart.Velocity.y
  200. local NV = Vector3.new(0,0,0)
  201. print("Move list")
  202. print("---------")
  203. print("Shift = Boost")
  204. print("Ctrl = Mach Speed Boost")
  205. print("Q = Left QuickStep, E = Right QuickStep")
  206. print("C = Slide, in air to stomp")
  207. print("Jump Then Hold B near a wall to wallrun")
  208. print("M to change music, if you're standing still you'll do a special animation!")
  209. print("Space near a wall to walljump, away from a wall homing attack")
  210. music = Instance.new("Sound",PlayerGui)
  211. music.Volume = 1
  212. music.TimePosition = 0
  213. music.Pitch = 1
  214. music.SoundId = "rbxassetid://1251555494"
  215. music.Looped = true
  216. music:Play()
  217.  
  218.  
  219. boostsound = Instance.new("Sound",PlayerGui)
  220. boostsound.Volume = .6
  221. boostsound.TimePosition = 0
  222. boostsound.Pitch = 1
  223. boostsound.SoundId = "rbxassetid://924922553"
  224. boostsound.Looped = false
  225.  
  226.  
  227.  
  228. stompsound = Instance.new("Sound",PlayerGui)
  229. stompsound.Volume = 2
  230. stompsound.TimePosition = 0
  231. stompsound.Pitch = 1
  232. stompsound.SoundId = "rbxassetid://1295424184"
  233. stompsound.Looped = false
  234.  
  235.  
  236.  
  237. so = function(id,par,vol,pit)
  238. coroutine.resume(coroutine.create(function()
  239. local sou = Instance.new("Sound",par or workspace)
  240. sou.Volume=vol
  241. sou.Pitch=pit or 1
  242. sou.SoundId=id
  243. sou:play()
  244. game:GetService("Debris"):AddItem(sou,8)
  245. end))
  246. end
  247.  
  248. --save shoulders
  249. RSH, LSH=nil, nil
  250. --welds
  251. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  252. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  253. LH=Torso["Left Hip"]
  254. RH=Torso["Right Hip"]
  255. TorsoColor=Torso.BrickColor
  256. function NoOutline(Part)
  257. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  258. end
  259. player=Player
  260. ch=Character
  261. RSH=ch.Torso["Right Shoulder"]
  262. LSH=ch.Torso["Left Shoulder"]
  263. --
  264. RSH.Parent=nil
  265. LSH.Parent=nil
  266. --
  267. RW.Name="Right Shoulder"
  268. RW.Part0=ch.Torso
  269. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  270. RW.C1=cf(0, 0.5, 0)
  271. RW.Part1=ch["Right Arm"]
  272. RW.Parent=ch.Torso
  273. --
  274. LW.Name="Left Shoulder"
  275. LW.Part0=ch.Torso
  276. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  277. LW.C1=cf(0, 0.5, 0)
  278. LW.Part1=ch["Left Arm"]
  279. LW.Parent=ch.Torso
  280.  
  281.  
  282. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  283. local wld = Instance.new("Weld", wp1)
  284. wld.Part0 = wp0
  285. wld.Part1 = wp1
  286. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  287. end
  288. local rs = game:GetService("RunService").RenderStepped
  289.  
  290. newWeld(RootPart, Torso, 0, -1, 0)
  291. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  292. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  293. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  294. newWeld(Torso, RightLeg, 0.5, -1, 0)
  295. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  296.  
  297. Player=owner
  298. Character=Player.Character
  299. m=Instance.new('Model',Character)
  300.  
  301.  
  302. local function weldBetween(a, b)
  303. local weldd = Instance.new("ManualWeld")
  304. weldd.Part0 = a
  305. weldd.Part1 = b
  306. weldd.C0 = CFrame.new()
  307. weldd.C1 = b.CFrame:inverse() * a.CFrame
  308. weldd.Parent = a
  309. return weldd
  310. end
  311.  
  312. ArtificialHB = Instance.new("BindableEvent", script)
  313. ArtificialHB.Name = "Heartbeat"
  314.  
  315. script:WaitForChild("Heartbeat")
  316.  
  317. frame = 1 / 80
  318. tf = 0
  319. allowframeloss = false
  320. tossremainder = false
  321. lastframe = tick()
  322. script.Heartbeat:Fire()
  323. game:GetService("RunService").Heartbeat:connect(function(s, p)
  324. tf = tf + s
  325. if tf >= frame then
  326. if allowframeloss then
  327. script.Heartbeat:Fire()
  328. lastframe = tick()
  329. else
  330. for i = 1, math.floor(tf / frame) do
  331. script.Heartbeat:Fire()
  332. end
  333. lastframe = tick()
  334. end
  335. if tossremainder then
  336. tf = 0
  337. else
  338. tf = tf - frame * math.floor(tf / frame)
  339. end
  340. end
  341. end)
  342.  
  343. --[[]
  344. function swait(num)
  345. if num == 0 or num == nil then
  346. ArtificialHB.Event:wait()
  347. else
  348. for i = 0, num do
  349. ArtificialHB.Event:wait()
  350. end
  351. end
  352. end
  353.  
  354. ]]
  355.  
  356.  
  357.  
  358.  
  359. function swait(num)
  360. if num == 0 or num == nil then
  361. game:service("RunService").Stepped:wait()
  362. else
  363. for i = 0, num do
  364. game:service("RunService").Stepped:wait()
  365. end
  366. end
  367. end
  368.  
  369. function RemoveOutlines(part)
  370. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  371. end
  372.  
  373.  
  374. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  375. local fp = it("Part")
  376. fp.formFactor = formfactor
  377. fp.Parent = parent
  378. fp.Reflectance = reflectance
  379. fp.Transparency = transparency
  380. fp.CanCollide = false
  381. fp.Locked = true
  382. fp.BrickColor = brickcolor
  383. fp.Name = name
  384. fp.Size = size
  385. fp.Position = Torso.Position
  386. NoOutline(fp)
  387. if fp.BrickColor == BrickColor.new("Dark indigo") then
  388. fp.Material = "Neon"
  389. else
  390. if fp.BrickColor == BrickColor.new("Really black") then
  391. fp.BrickColor = BrickColor.new("Really black")
  392. fp.Material = "Metal"
  393. else
  394. fp.Material = "Neon"
  395. end
  396. end
  397. fp:BreakJoints()
  398. return fp
  399. end
  400.  
  401. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  402. local mesh = it(Mesh)
  403. mesh.Parent = part
  404. if Mesh == "SpecialMesh" then
  405. mesh.MeshType = meshtype
  406. mesh.MeshId = meshid
  407. end
  408. mesh.Offset = offset
  409. mesh.Scale = scale
  410. return mesh
  411. end
  412.  
  413. weld = function(parent, part0, part1, c0)
  414. local weld = it("Weld")
  415. weld.Parent = parent
  416. weld.Part0 = part0
  417. weld.Part1 = part1
  418. weld.C0 = c0
  419. return weld
  420. end
  421.  
  422. F1 = Instance.new("Folder", Character)
  423. F1.Name = "Effects Folder"
  424. F2 = Instance.new("Folder", F1)
  425. F2.Name = "Effects"
  426. Triangle = function(a, b, c)
  427. end
  428.  
  429. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  430. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  431. prt.Anchored = true
  432. prt.CanCollide = false
  433. prt.CFrame = cframe
  434. prt.Name = "prt"
  435. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  436. game:GetService("Debris"):AddItem(prt, 5)
  437. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  438. end
  439.  
  440.  
  441.  
  442. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  443. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  444. prt.Anchored = true
  445. prt.CanCollide = false
  446. prt.CFrame = cframe
  447. prt.Name = "prt"
  448. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  449. game:GetService("Debris"):AddItem(prt, 5)
  450. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  451. end
  452.  
  453. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  454. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  455. prt.Anchored = true
  456. prt.CFrame = cframe
  457. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  458. game:GetService("Debris"):AddItem(prt, 5)
  459. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  460. end
  461.  
  462. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  463. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  464. prt.Anchored = true
  465. prt.CFrame = cframe
  466. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  467. game:GetService("Debris"):AddItem(prt, 5)
  468. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  469. end
  470.  
  471. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  472. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  473. prt.Anchored = true
  474. prt.CFrame = cframe
  475. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  476. game:GetService("Debris"):AddItem(prt, 5)
  477. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  478. end
  479.  
  480. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  481. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  482. prt.Anchored = true
  483. prt.CFrame = cframe
  484. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  485. game:GetService("Debris"):AddItem(prt, 5)
  486. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  487. end
  488.  
  489. ElecEffect = function(cff, x, y, z)
  490. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  491. prt.Anchored = true
  492. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  493. prt.CFrame = cf(prt.Position)
  494. game:GetService("Debris"):AddItem(prt, 2)
  495. xval = math.random() / 2
  496. yval = math.random() / 2
  497. zval = math.random() / 2
  498. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  499. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  500. end
  501.  
  502. function FindNearestTorso(Position, Distance, SinglePlayer)
  503. if SinglePlayer then
  504. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  505. end
  506. local List = {}
  507. for i, v in pairs(workspace:GetChildren()) do
  508. if v:IsA("Model") then
  509. if v:findFirstChild("Torso") then
  510. if v ~= Character then
  511. if (v.Torso.Position - Position).magnitude <= Distance then
  512. table.insert(List, v)
  513. end
  514. end
  515. end
  516. end
  517. end
  518. return List
  519. end
  520.  
  521.  
  522. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  523. local Part = Create("Part"){
  524. Parent = Parent,
  525. Reflectance = Reflectance,
  526. Transparency = Transparency,
  527. CanCollide = false,
  528. Locked = true,
  529. BrickColor = BrickColor.new(tostring(BColor)),
  530. Name = Name,
  531. Size = Size,
  532. Material = Material,
  533. }
  534. RemoveOutlines(Part)
  535. return Part
  536. end
  537.  
  538. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  539. local Msh = Create(Mesh){
  540. Parent = Part,
  541. Offset = OffSet,
  542. Scale = Scale,
  543. }
  544. if Mesh == "SpecialMesh" then
  545. Msh.MeshType = MeshType
  546. Msh.MeshId = MeshId
  547. end
  548. return Msh
  549. end
  550.  
  551.  
  552.  
  553. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  554. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  555. prt.Anchored = true
  556. prt.CFrame = cframe
  557. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  558. game:GetService("Debris"):AddItem(prt, 10)
  559. if Type == 1 or Type == nil then
  560. table.insert(Effects, {
  561. prt,
  562. "Block1",
  563. delay,
  564. x3,
  565. y3,
  566. z3,
  567. msh
  568. })
  569. elseif Type == 2 then
  570. table.insert(Effects, {
  571. prt,
  572. "Block2",
  573. delay,
  574. x3,
  575. y3,
  576. z3,
  577. msh
  578. })
  579. end
  580. end
  581.  
  582. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  583. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  584. prt.Anchored = true
  585. prt.CFrame = cframe
  586. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  587. game:GetService("Debris"):AddItem(prt, 10)
  588. table.insert(Effects, {
  589. prt,
  590. "Cylinder",
  591. delay,
  592. x3,
  593. y3,
  594. z3,
  595. msh
  596. })
  597. end
  598.  
  599. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay,material)
  600. 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))
  601. prt.Anchored=true
  602. prt.CFrame=cframe
  603. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  604. game:GetService("Debris"):AddItem(prt,2)
  605. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  606. for i=0,1,delay do
  607. swait()
  608. Part.Transparency=i
  609. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  610. end
  611. Part.Parent=nil
  612. end),prt,msh,(math.random(0,1)+math.random())/5)
  613. end
  614.  
  615. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  616. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  617. prt.Anchored = true
  618. prt.CFrame = cframe
  619. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  620. game:GetService("Debris"):AddItem(prt, 10)
  621. table.insert(Effects, {
  622. prt,
  623. "Cylinder",
  624. delay,
  625. x3,
  626. y3,
  627. z3,
  628. msh
  629. })
  630. end
  631.  
  632. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  633. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  634. prt.Anchored = true
  635. prt.CFrame = cframe
  636. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  637. game:GetService("Debris"):AddItem(prt, 10)
  638. table.insert(Effects, {
  639. prt,
  640. "Cylinder",
  641. delay,
  642. x3,
  643. y3,
  644. z3,
  645. msh
  646. })
  647. end
  648.  
  649. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  650. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  651. prt.Anchored = true
  652. prt.CFrame = cframe
  653. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  654. game:GetService("Debris"):AddItem(prt, 10)
  655. table.insert(Effects, {
  656. prt,
  657. "Cylinder",
  658. delay,
  659. x3,
  660. y3,
  661. z3,
  662. msh
  663. })
  664. end
  665.  
  666.  
  667. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  668. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  669. prt.Anchored = true
  670. prt.CFrame = cframe
  671. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  672. game:GetService("Debris"):AddItem(prt, 10)
  673. table.insert(Effects, {
  674. prt,
  675. "Cylinder",
  676. delay,
  677. x3,
  678. y3,
  679. z3,
  680. msh
  681. })
  682. end
  683.  
  684. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  685. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  686. prt.Anchored = true
  687. prt.CFrame = cframe
  688. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  689. game:GetService("Debris"):AddItem(prt, 10)
  690. table.insert(Effects, {
  691. prt,
  692. "Cylinder",
  693. delay,
  694. x3,
  695. y3,
  696. z3,
  697. msh
  698. })
  699. end
  700.  
  701. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  702. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  703. prt.Anchored = true
  704. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  705. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  706. local num = math.random(10, 50) / 1000
  707. game:GetService("Debris"):AddItem(prt, 10)
  708. table.insert(Effects, {
  709. prt,
  710. "Shatter",
  711. num,
  712. prt.CFrame,
  713. math.random() - math.random(),
  714. 0,
  715. math.random(50, 100) / 100
  716. })
  717. end
  718.  
  719. local lerp = function(a, b, t)
  720. return a * (1 - t) + b * t
  721. end
  722.  
  723. function clerp(a,b,t)
  724. local qa = {QuaternionFromCFrame(a)}
  725. local qb = {QuaternionFromCFrame(b)}
  726. local ax, ay, az = a.x, a.y, a.z
  727. local bx, by, bz = b.x, b.y, b.z
  728. local _t = 1-t
  729. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  730. end
  731.  
  732. function QuaternionFromCFrame(cf)
  733. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  734. local trace = m00 + m11 + m22
  735. if trace > 0 then
  736. local s = math.sqrt(1 + trace)
  737. local recip = 0.5/s
  738. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  739. else
  740. local i = 0
  741. if m11 > m00 then
  742. i = 1
  743. end
  744. if m22 > (i == 0 and m00 or m11) then
  745. i = 2
  746. end
  747. if i == 0 then
  748. local s = math.sqrt(m00-m11-m22+1)
  749. local recip = 0.5/s
  750. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  751. elseif i == 1 then
  752. local s = math.sqrt(m11-m22-m00+1)
  753. local recip = 0.5/s
  754. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  755. elseif i == 2 then
  756. local s = math.sqrt(m22-m00-m11+1)
  757. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  758. end
  759. end
  760. end
  761.  
  762.  
  763. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  764. local xs, ys, zs = x + x, y + y, z + z
  765. local wx, wy, wz = w*xs, w*ys, w*zs
  766. local xx = x*xs
  767. local xy = x*ys
  768. local xz = x*zs
  769. local yy = y*ys
  770. local yz = y*zs
  771. local zz = z*zs
  772. 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))
  773. end
  774. function QuaternionSlerp(a, b, t)
  775. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  776. local startInterp, finishInterp;
  777. if cosTheta >= 0.0001 then
  778. if (1 - cosTheta) > 0.0001 then
  779. local theta = math.acos(cosTheta)
  780. local invSinTheta = 1/math.sin(theta)
  781. startInterp = math.sin((1-t)*theta)*invSinTheta
  782. finishInterp = math.sin(t*theta)*invSinTheta
  783. else
  784. startInterp = 1-t
  785. finishInterp = t
  786. end
  787. else
  788. if (1+cosTheta) > 0.0001 then
  789. local theta = math.acos(-cosTheta)
  790. local invSinTheta = 1/math.sin(theta)
  791. startInterp = math.sin((t-1)*theta)*invSinTheta
  792. finishInterp = math.sin(t*theta)*invSinTheta
  793. else
  794. startInterp = t-1
  795. finishInterp = t
  796. end
  797. end
  798. 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
  799. end
  800.  
  801. function weld5(part0, part1, c0, c1)
  802. weeld=Instance.new("Weld", part0)
  803. weeld.Part0=part0
  804. weeld.Part1=part1
  805. weeld.C0=c0
  806. weeld.C1=c1
  807. return weeld
  808. end
  809.  
  810. --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)
  811.  
  812. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  813. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  814. end
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821. Character.Humanoid.MaxHealth = 120
  822. Character.Humanoid.Health = 120
  823.  
  824. local f = 0
  825. local b = Instance.new("BlurEffect",cam)
  826. local c = Instance.new('PointLight', Torso)
  827. c.Range = 16
  828. c.Color = Color3.new(0, 1,1)
  829. c.Brightness = 1.5
  830. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  831.  
  832. b.Size = b.Size - 4
  833. if boost == true then
  834. c.Enabled = true
  835. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  836. -- cam.FieldOfView = 110
  837. freefall = 0
  838. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,3),0.25)
  839. 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)
  840. 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)
  841. if hitfloor ~= nil and Anim ~= "runIdle" then
  842. SpecialEffect(BrickColor.new("Cyan"),RootPart.CFrame*CFrame.new(0,-3.4,.78) ,2,2,2, 1.5,1.5,1.5,.09)
  843. end
  844. end
  845. if boost == false then
  846. cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  847. --cam.FieldOfView = 70
  848. c.Enabled = false
  849. end
  850. end)
  851.  
  852.  
  853.  
  854. mouse.KeyDown:connect(function(key)
  855. if string.byte(key) == 48 then
  856. b.Size = 40
  857. Swing = 2
  858. freefall = 0
  859.  
  860. coroutine.resume(coroutine.create(function()
  861. for i = 0,1,0.1 do
  862. swait()
  863. 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)
  864. end
  865. end))
  866. Humanoid.WalkSpeed = 180
  867. RootPart.Velocity = RootPart.CFrame.lookVector*150
  868. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 8, 8, 8, 0.14,"Neon")
  869. boost = true
  870. boostsound:Play()
  871. end
  872. end)
  873.  
  874. mouse.KeyUp:connect(function(key)
  875. if string.byte(key) == 48 then
  876. Swing = 1
  877. Humanoid.WalkSpeed = 64
  878. boost = false
  879. boostsound:Stop()
  880.  
  881. end
  882. end)
  883.  
  884.  
  885.  
  886.  
  887. mouse.KeyDown:connect(function(key)
  888. if string.byte(key) == 50 then
  889. b.Size = 40
  890. freefall = 0
  891. Swing = 2
  892.  
  893. coroutine.resume(coroutine.create(function()
  894. for i = 0,1,0.1 do
  895. swait()
  896. 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)
  897. end
  898. end))
  899.  
  900. Humanoid.WalkSpeed = 320
  901. RootPart.Velocity = RootPart.CFrame.lookVector*550
  902. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  903. RingEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,0,-11.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  904. RingEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,-13.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  905. boost = true
  906. boostsound:Play()
  907. end
  908. end)
  909.  
  910. mouse.KeyUp:connect(function(key)
  911. if string.byte(key) == 50 then
  912. Swing = 1
  913. Humanoid.WalkSpeed = 64
  914. boost = false
  915. boostsound:Stop()
  916.  
  917. end
  918. end)
  919.  
  920.  
  921. local lastwall = nil
  922. local jumped = false
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. local vwall = false
  930.  
  931. mouse.KeyDown:connect(function(key)
  932. if key == 'b' and hitfloor == nil and attack == false then
  933. vrun()
  934. end
  935. end)
  936.  
  937.  
  938. function vrun()
  939. local ray = Ray.new(
  940. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  941. )
  942. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  943.  
  944. if hit then
  945. if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.CanCollide == true then
  946. vwall = true
  947. local NV = Vector3.new(0,0,0)
  948. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  949. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  950. local GravPoint = RootPart.Velocity.y
  951. local velo = Instance.new("BodyVelocity",Torso)
  952. velo.MaxForce = Vector3.new(400000,400000,400000)
  953.  
  954. attack = true
  955. while vwall == true and ray and hit do
  956. swait()
  957. change = 0.84+ Humanoid.WalkSpeed/132
  958. if Humanoid.WalkSpeed > 40 and Humanoid.WalkSpeed < 70 then
  959. velo.Velocity = Vector3.new(0,40,0)
  960. end
  961. if Humanoid.WalkSpeed > 70 and Humanoid.WalkSpeed < 200 then
  962. velo.Velocity = Vector3.new(0,80,0)
  963. end
  964. if Humanoid.WalkSpeed > 200 then
  965. velo.Velocity = Vector3.new(0,130,0)
  966. end
  967. ray = Ray.new(
  968. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  969. )
  970. hit, position, normal = workspace:FindPartOnRay(ray, character)
  971. 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)
  972. 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)
  973. 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)
  974. 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)
  975. 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)
  976. 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)
  977. end
  978. velo:Destroy()
  979. wait(0.07)
  980.  
  981. if vwall == false then
  982.  
  983. RootPart.Velocity = -RootPart.CFrame.lookVector*68 + Vector3.new(0,86,0)
  984.  
  985. --[[]
  986. for i = 0,5,0.2 do
  987. rs:wait()
  988. 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)
  989. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  991. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  992. 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)
  993. 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)
  994. end
  995. ]]
  996.  
  997.  
  998. for i = 0,4,0.1 do
  999. swait()
  1000. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1001. 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)
  1002. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1003. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1004. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1005. 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)
  1006. 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)
  1007. end
  1008.  
  1009. attack = false
  1010.  
  1011.  
  1012. end
  1013.  
  1014.  
  1015. if vwall == true then
  1016. RootPart.Velocity = RootPart.CFrame.lookVector*38 + Vector3.new(0,86,0)
  1017.  
  1018. --[[]
  1019. for i = 0,5,0.2 do
  1020. rs:wait()
  1021. 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)
  1022. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1023. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  1024. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  1025. 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)
  1026. 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)
  1027. end
  1028. ]]
  1029.  
  1030.  
  1031. for i = 0,4,0.15 do
  1032. swait()
  1033. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1034. 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)
  1035. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1036. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1037. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1038. 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)
  1039. 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)
  1040. end
  1041.  
  1042. attack = false
  1043.  
  1044. end
  1045.  
  1046.  
  1047. end
  1048. end
  1049. end
  1050.  
  1051.  
  1052.  
  1053.  
  1054. mouse.KeyUp:connect(function(key)
  1055. if key == 'b' and vwall == true then
  1056. vwall = false
  1057. end
  1058. end)
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064. function Ldash()
  1065.  
  1066.  
  1067.  
  1068. evadecooldown = true
  1069. attack = true
  1070. k = math.random(1,2)
  1071. if k == 1 then
  1072. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1073. else
  1074. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1075. end
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081. --+173.8*i
  1082. for i = 0,.7,0.1 do
  1083. swait()
  1084. Head.Velocity = Head.CFrame.rightVector * -135
  1085. 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)
  1086. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
  1087. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(30)),.2)
  1088. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)),.2)
  1089. 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)
  1090. 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)
  1091. end
  1092.  
  1093. attack = false
  1094. wait(0.08)
  1095. evadecooldown = false
  1096.  
  1097.  
  1098. end
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104. function Rdash()
  1105.  
  1106.  
  1107.  
  1108. evadecooldown = true
  1109. attack = true
  1110. k = math.random(1,2)
  1111. if k == 1 then
  1112. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1113. else
  1114. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1115. end
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121. --+173.8*i
  1122. for i = 0,.7,0.1 do
  1123. swait()
  1124. Head.Velocity = Head.CFrame.rightVector * 135
  1125. 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)
  1126. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
  1127. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)),.2)
  1128. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(-30)),.2)
  1129. 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)
  1130. 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)
  1131. end
  1132.  
  1133. attack = false
  1134. wait(0.08)
  1135. evadecooldown = false
  1136.  
  1137.  
  1138. end
  1139. local sliding = false
  1140.  
  1141.  
  1142. function Slide()
  1143.  
  1144. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  1145. spd = spd + 30
  1146. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1147. local GravPoint = RootPart.Velocity.y
  1148. if spd > 40 and hitfloor ~= nil then
  1149. noleg = true
  1150.  
  1151. attack = true
  1152. k = math.random(1,2)
  1153. if k == 1 then
  1154. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  1155. else
  1156. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  1157. end
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168. local NV = Vector3.new(0,0,0)
  1169. local bv = Instance.new("BodyVelocity", Torso)
  1170. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1171. bv.velocity = dir*spd
  1172. local bg = Instance.new("BodyGyro", Torso)
  1173. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1174. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1175. Head.Running.SoundId = "rbxassetid://1295468446"
  1176. Head.Running.TimePosition = 0
  1177.  
  1178. Humanoid.PlatformStand = true
  1179. while spd > 2 and hitfloor ~= nil and sliding == true do
  1180. swait()
  1181. spd = spd - 0.95
  1182. bv.velocity = dir*spd + Vector3.new(0,0,0)
  1183. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1184. 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)
  1185. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(34),math.rad(0),math.rad(12)),.2)
  1186. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(70)),.2)
  1187. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1188. 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)
  1189. 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)
  1190. end
  1191. bv:Destroy()
  1192. bg:Destroy()
  1193. Head.Running.SoundId = "rbxassetid://758199523"
  1194. Head.Running.TimePosition = 0
  1195. Humanoid.PlatformStand = false
  1196. attack = false
  1197. sliding = false
  1198. wait(0.05)
  1199. evadecooldown = false
  1200.  
  1201.  
  1202. end
  1203. end
  1204.  
  1205. function land()
  1206. attack = true
  1207. RootPart.Velocity = Vector3.new(0,0,0)
  1208. WaveEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,-1,0) , 1, 1, 1, 3, 0.8, 3, 0.06)
  1209. so("http://www.roblox.com/asset/?id=1295424585", Torso, 3.5, 1)
  1210.  
  1211. coroutine.resume(coroutine.create(function()
  1212. for i = 0,1,0.1 do
  1213. swait()
  1214. 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)
  1215. 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)
  1216. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(0)),.5)
  1217. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.5)
  1218. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.5)
  1219. 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)
  1220. 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)
  1221.  
  1222. end
  1223. attack = false
  1224.  
  1225.  
  1226. end))
  1227.  
  1228.  
  1229.  
  1230. end
  1231.  
  1232.  
  1233.  
  1234.  
  1235. function stomp()
  1236. attack = true
  1237. stompsound:Play()
  1238.  
  1239. while hitfloor == nil do
  1240. swait()
  1241. b.Size = 12
  1242. WaveEffect(BrickColor.new("Cyan"), LeftLeg.CFrame*CFrame.new(0,-2.4,0) , 1, 1, 1, 0.8, 0.8, 0.8, 0.14)
  1243. RootPart.Velocity = Vector3.new(0,RootPart.Velocity.y/1.6,0) +Vector3.new(0,-150,0)
  1244. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1245. 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)
  1246. 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)
  1247. 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)
  1248. 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)
  1249. 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)
  1250. 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)
  1251.  
  1252. end
  1253. stompsound:Stop()
  1254. land()
  1255.  
  1256.  
  1257. end
  1258.  
  1259.  
  1260. function changemusic()
  1261. musicnum = musicnum + 1
  1262. music.TimePosition = 0
  1263. local osix = false
  1264. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude
  1265. if musicnum > 14 then
  1266. musicnum = 1
  1267. end
  1268. if musicnum == 1 then
  1269. music.SoundId = "rbxassetid://179029173"
  1270. end
  1271. if musicnum == 2 then
  1272. music.SoundId = "rbxassetid://146443855"
  1273. end
  1274. if musicnum == 3 then
  1275. music.SoundId = "rbxassetid://1342408291"
  1276. end
  1277. if musicnum == 4 then
  1278. music.SoundId = "rbxassetid://201219416"
  1279. end
  1280. if musicnum == 5 then
  1281. music.SoundId = "rbxassetid://1390472571"
  1282. end
  1283. if musicnum == 6 then
  1284. osix = true
  1285. music.SoundId = "rbxassetid://249974783"
  1286. end
  1287. if musicnum == 7 then
  1288. music.SoundId = "rbxassetid://1851880603"
  1289. end
  1290. if musicnum == 8 then
  1291. music.SoundId = "rbxassetid://412034984"
  1292. end
  1293. if musicnum == 9 then
  1294. music.SoundId = "rbxassetid://536915629"
  1295. end
  1296. if musicnum == 10 then
  1297. music.SoundId = "rbxassetid://1200005861"
  1298. end
  1299. if musicnum == 11 then
  1300. music.SoundId = "rbxassetid://1055930631"
  1301. end
  1302. if musicnum == 12 then
  1303. music.SoundId = "rbxassetid://300269553"
  1304. end
  1305. if musicnum == 13 then
  1306. music.SoundId = "rbxassetid://199897052"
  1307. end
  1308. if musicnum == 14 then
  1309. music.SoundId = "rbxassetid://638115895"
  1310. end
  1311.  
  1312. if spd < 14 then
  1313. Humanoid.Jump = true
  1314.  
  1315. if osix == false then
  1316. so("rbxassetid://537371462",PlayerGui,2,1)
  1317. end
  1318.  
  1319.  
  1320. RootPart.Velocity = Vector3.new(0,102,0)
  1321. attack = true
  1322. wait(0.08)
  1323. for i = 0,7,0.1 do
  1324. swait()
  1325. RootPart.Velocity = Vector3.new(0,2,0)
  1326. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1327. 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)
  1328. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1329. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1330. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1331. 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)
  1332. 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)
  1333.  
  1334. end
  1335. b.Size = 40
  1336. MoonEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06)
  1337.  
  1338. if osix == true then
  1339. osix = false
  1340. so("rbxassetid://156821036",PlayerGui,2,1)
  1341. end
  1342.  
  1343. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1344. for i = 0,5,0.1 do
  1345. swait()
  1346. RootPart.Velocity = Vector3.new(0,3.5,0)
  1347. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1348. 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)
  1349. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1350. 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)
  1351. 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)
  1352. 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)
  1353. 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)
  1354. end
  1355. attack = false
  1356. end
  1357. end
  1358.  
  1359.  
  1360. mouse.KeyDown:connect(function(key)
  1361. if key == 'q' and attack == false and evadecooldown == false then
  1362. Ldash()
  1363. end
  1364. end)
  1365.  
  1366.  
  1367.  
  1368. mouse.KeyDown:connect(function(key)
  1369. if key == 'e' and attack == false and evadecooldown == false then
  1370. Rdash()
  1371. end
  1372. end)
  1373.  
  1374. mouse.KeyDown:connect(function(key)
  1375. if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then
  1376. sliding = true
  1377. Slide()
  1378. end
  1379. end)
  1380.  
  1381. mouse.KeyDown:connect(function(key)
  1382. if key == 'c' and attack == false and hitfloor == nil then
  1383. stomp()
  1384. end
  1385. end)
  1386.  
  1387.  
  1388. local walljump = false
  1389.  
  1390.  
  1391. function walljumpp()
  1392. local ray = Ray.new(
  1393. Torso.CFrame.p, RootPart.CFrame.lookVector *5
  1394. )
  1395. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1396.  
  1397. if hit then
  1398. if hit.Parent.Parent ~= Character and hit.Parent ~= Character then
  1399. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1400. GravPoint = 0
  1401. freefall = 0
  1402. walljump = true
  1403. Humanoid.AutoRotate = false
  1404. local velo = Instance.new("BodyVelocity",Torso)
  1405. velo.MaxForce = Vector3.new(400000,400000,400000)
  1406. --game.Debris:AddItem(velo,0.1)
  1407. attack = true
  1408. while hitfloor == nil and walljump == true and ray and hit do
  1409. swait()
  1410. freefall = 0
  1411. GravPoint = GravPoint - 0.36
  1412. ray = Ray.new(
  1413. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1414. )
  1415. hit, position, normal = workspace:FindPartOnRay(ray, character)
  1416. velo.Velocity = vt(0,GravPoint,0)
  1417. 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)
  1418. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2)
  1419. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2)
  1420. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1421. 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)
  1422. 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)
  1423. end
  1424. if walljump == false then
  1425. k = math.random(1,3)
  1426. if k == 1 then
  1427. so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1)
  1428. else if k == 2 then
  1429. so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1)
  1430. else if k == 3 then
  1431. so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1)
  1432. end
  1433. end
  1434. end
  1435.  
  1436. velo:Destroy()
  1437. attack = false
  1438. coroutine.resume(coroutine.create(function()
  1439. for i = 0,1,0.1 do
  1440. swait()
  1441. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1442. 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)
  1443. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1444. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1445. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1446. 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)
  1447. 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)
  1448. end
  1449. end))
  1450.  
  1451. Humanoid.AutoRotate = true
  1452. RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0)
  1453. wait(0.07)
  1454. RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector)
  1455. end
  1456. if walljump == true then
  1457. attack = false
  1458. walljump = false
  1459. Humanoid.AutoRotate = true
  1460. velo:Destroy()
  1461. end
  1462. end
  1463. end
  1464. end
  1465.  
  1466.  
  1467. local homed = nil
  1468. function home()
  1469. if walljump ~= true then
  1470. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do
  1471. if v:FindFirstChild('Head') then
  1472. Grabbed = true
  1473. homed = v
  1474. end
  1475. end
  1476.  
  1477. if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then
  1478. so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8)
  1479. local SBall = Instance.new("Part",Character)
  1480. SBall.Name = "Homing Ball"
  1481. SBall.CanCollide = false
  1482. SBall.Anchored = false
  1483. SBall.Transparency = 0.64
  1484. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1485. SBall.BrickColor = BrickColor.new("Toothpaste")
  1486. SBall.Size = Vector3.new(1,1,1)
  1487. SBall.Material = "Neon"
  1488. SBallweld = Instance.new("Weld")
  1489. SBallweld.Parent = SBall
  1490. SBallweld.Part0 = RootPart
  1491. SBallweld.Part1 = SBall
  1492. SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1493. SBallweld.Part0 = RootPart
  1494. local SBallmesh = Instance.new("SpecialMesh",SBall)
  1495. SBallmesh.MeshType = "Sphere"
  1496. SBallmesh.Scale = Vector3.new(6,6,6)
  1497. trail = Instance.new("Trail", Character)
  1498. a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0)
  1499. a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0)
  1500. trail.Texture = "rbxassetid://0"
  1501. trail.Attachment0 = a2
  1502. trail.Attachment1 = a3
  1503. trail.Lifetime = 0.353
  1504. trail.MinLength = 0.03
  1505. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)})
  1506. trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0))
  1507. trail.LightEmission = 4.8
  1508. trail.TextureLength = 0.034
  1509. trail.Enabled = true
  1510. attack = true
  1511. local position = Instance.new("BodyPosition",Torso)
  1512. position.P = 68350
  1513. position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1514.  
  1515. while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do
  1516. swait()
  1517. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1518. 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)
  1519. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1520. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1521. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1522. 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)
  1523. 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)
  1524. position.Position = homed.Torso.Position + Vector3.new(0,2,0)
  1525. end
  1526. local bodvol=Instance.new("BodyVelocity")
  1527. bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0)
  1528. bodvol.P= 35200
  1529. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1530. bodvol.Parent=homed.Head
  1531. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1532. homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30))
  1533.  
  1534. position:Destroy()
  1535. trail.Enabled = false
  1536. SBall:Destroy()
  1537. RootPart.Velocity = Vector3.new(0,93.5,0)
  1538. coroutine.resume(coroutine.create(function()
  1539. for i = 0,5,0.26 do
  1540. swait()
  1541. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1542. 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)
  1543. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1544. 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)
  1545. 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)
  1546. 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)
  1547. 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)
  1548. end
  1549. homed = nil
  1550. attack = false
  1551. end))
  1552.  
  1553. end
  1554.  
  1555. end
  1556.  
  1557.  
  1558. end
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582. mouse.KeyDown:connect(function(key)
  1583. wait(0.16)
  1584. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1585. walljumpp()
  1586. end
  1587. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1588. home()
  1589. end
  1590.  
  1591. if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then
  1592. walljump = false
  1593. end
  1594. end)
  1595.  
  1596.  
  1597.  
  1598.  
  1599. mouse.KeyDown:connect(function(key)
  1600. if key == 'm' and attack == false then
  1601. changemusic()
  1602. end
  1603. end)
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610. mouse.KeyUp:connect(function(key)
  1611. wait(0.05)
  1612. if key == 'c' and sliding == true then
  1613. sliding = false
  1614. end
  1615. end)
  1616. local look = 0
  1617.  
  1618.  
  1619.  
  1620. while true do
  1621. swait()
  1622. sine = sine + change
  1623. --speed = speed + music.PlaybackLoudness/90
  1624. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1625. local velderp=RootPart.Velocity.y
  1626. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1627.  
  1628. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1629.  
  1630. local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1631. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character)
  1632.  
  1633. local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1634. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character)
  1635.  
  1636. local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0))
  1637. local start, position = workspace:FindPartOnRay(waterthing, character)
  1638.  
  1639. if start ~= nil and start.Material == "Water" then
  1640.  
  1641. RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0)
  1642.  
  1643. end
  1644.  
  1645. Head.Running.Pitch = 0.76 + Humanoid.WalkSpeed/124
  1646. if torvel<1 and Swing == 2 then
  1647. boost = false
  1648. elseif torvel>1 and Swing == 2 then
  1649. boost = true
  1650. freefall = 0
  1651. end
  1652. if hitfloor ~= nil and freefall < 150 then
  1653. freefall = 0
  1654. end
  1655. if freefall > 150 and hitfloor ~= nil then
  1656. land()
  1657. freefall = 0
  1658. end
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1667. Anim="Jump"
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673. if attack==false then
  1674. change = 1
  1675. look = 0
  1676. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1677. 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)
  1678. 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)
  1679. 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)
  1680. 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)
  1681. 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)
  1682. 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)
  1683. end
  1684.  
  1685. elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then
  1686. Anim="Fall"
  1687. change = 1
  1688. freefall = freefall +0.77
  1689.  
  1690.  
  1691. if attack==false then
  1692. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1693. 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)
  1694. 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)
  1695. 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)
  1696. 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)
  1697. 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)
  1698. 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)
  1699. end
  1700.  
  1701.  
  1702.  
  1703. elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then
  1704. Anim="FreeFall"
  1705. change = 1
  1706.  
  1707.  
  1708. if attack==false then
  1709. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1710. 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)
  1711. 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)
  1712. 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)
  1713. 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)
  1714. 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)
  1715. 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)
  1716. end
  1717.  
  1718. elseif torvel<1 and hitfloor~=nil then
  1719. Anim="Idle"
  1720. change = 1
  1721. if attack==false and equip == false then
  1722.  
  1723. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1724. 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)
  1725. 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)
  1726. 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)
  1727. 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)
  1728. 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)
  1729. 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)
  1730. end
  1731.  
  1732.  
  1733.  
  1734. elseif torvel>1.5 and torvel<70 and hitfloor~=nil then
  1735. Anim="Walk"
  1736. change = 0.84+ Character.Humanoid.WalkSpeed/132
  1737. look = 0
  1738. if attack==false and equip == false then
  1739. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1740. 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)
  1741. 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)
  1742. 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)
  1743. 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)
  1744. 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)
  1745. 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)
  1746. end
  1747.  
  1748.  
  1749. elseif torvel>=70 and torvel<200 and hitfloor~=nil then
  1750. Anim="Run"
  1751. change = 0.84+ Character.Humanoid.WalkSpeed/142
  1752. if attack==false and equip == false then
  1753. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1754. 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)
  1755. 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)
  1756. 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)
  1757. 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)
  1758. 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)
  1759. 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)
  1760. end
  1761.  
  1762. --[[
  1763. if attack==false then
  1764. 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)
  1765. 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)
  1766. end
  1767. ]]
  1768. if attack==true and noleg == false then
  1769. 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)
  1770. 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)
  1771. end
  1772.  
  1773.  
  1774.  
  1775. elseif torvel>=200 and hitfloor~=nil then
  1776. Anim="MachRun"
  1777. change = 0.84+ Character.Humanoid.WalkSpeed/182
  1778. if attack==false and equip == false then
  1779. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1780. 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)
  1781. 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)
  1782. 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)
  1783. 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)
  1784. 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)
  1785. 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)
  1786. end
  1787.  
  1788.  
  1789.  
  1790. end
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800. if 0 < #Effects then
  1801. for e = 1, #Effects do
  1802. if Effects[e] ~= nil then
  1803. local Thing = Effects[e]
  1804. if Thing ~= nil then
  1805. local Part = Thing[1]
  1806. local Mode = Thing[2]
  1807. local Delay = Thing[3]
  1808. local IncX = Thing[4]
  1809. local IncY = Thing[5]
  1810. local IncZ = Thing[6]
  1811. if Thing[1].Transparency <= 1 then
  1812. if Thing[2] == "Block1" then
  1813. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1814. Mesh = Thing[1]:FindFirstChild("Mesh")
  1815. if not Mesh then
  1816. Mesh = Instance.new("BlockMesh")
  1817. end
  1818. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1819. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1820. elseif Thing[2] == "Cylinder" then
  1821. Mesh = Thing[1]:FindFirstChild("Mesh")
  1822. if not Mesh then
  1823. Mesh = Instance.new("BlockMesh")
  1824. end
  1825. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1826. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1827. elseif Thing[2] == "Blood" then
  1828. Mesh = Thing[1]:FindFirstChild("Mesh")
  1829. if not Mesh then
  1830. Mesh = Instance.new("BlockMesh")
  1831. end
  1832. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1833. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1834. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1835. elseif Thing[2] == "Elec" then
  1836. Mesh = Thing[1]:FindFirstChild("Mesh")
  1837. if not Mesh then
  1838. Mesh = Instance.new("BlockMesh")
  1839. end
  1840. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1841. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1842. elseif Thing[2] == "Disappear" then
  1843. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1844. end
  1845. else
  1846. Part.Parent = nil
  1847. game:GetService("Debris"):AddItem(Part, 0)
  1848. table.remove(Effects, e)
  1849. end
  1850. end
  1851. end
  1852. end
  1853. end
  1854.  
  1855. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement