Advertisement
kostik228

xd

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