Advertisement
Dudermonman

Sp33dy dude

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