Advertisement
kostik228

lol

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