Advertisement
EdgyHedgehog

MegaMan FE

Sep 28th, 2018
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.27 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. Player=owner
  84. Character=Player.Character
  85. PlayerGui=Player.PlayerGui
  86. Backpack=Player.Backpack
  87. Torso=Character.Torso
  88. Head=Character.Head
  89. Humanoid=Character.Humanoid
  90. LeftArm=Character["Left Arm"]
  91. LeftLeg=Character["Left Leg"]
  92. rarm=Character["Right Arm"]
  93. RightLeg=Character["Right Leg"]
  94. cam=game.Workspace.CurrentCamera
  95. LS=Torso["Left Shoulder"]
  96. LH=Torso["Left Hip"]
  97. RS=Torso["Right Shoulder"]
  98. RH=Torso["Right Hip"]
  99. Face = Head.face
  100. Neck=Torso.Neck
  101. it=Instance.new
  102. attacktype=1
  103. vt=Vector3.new
  104. cf=CFrame.new
  105. euler=CFrame.fromEulerAnglesXYZ
  106. angles=CFrame.Angles
  107. cloaked=false
  108. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  110. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  111. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  112. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  113. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  114. RootPart=Character.HumanoidRootPart
  115. RootJoint=RootPart.RootJoint
  116. RootCF=euler(-1.57,0,3.14)
  117. attack = false
  118. bounce=false
  119. cooldown=false
  120. deeznuts=false
  121. attackdebounce = false
  122. deb=false
  123. equipped=true
  124. hand=false
  125. MMouse=nil
  126. combo=0
  127. mana=0
  128. trispeed=.5
  129. attackmode='none'
  130. local idle=0
  131. local Anim="Idle"
  132. local Effects={}
  133. local gun=false
  134. local shoot=false
  135. player=nil
  136. mana=0
  137. cam = workspace.CurrentCamera
  138. ZTarget = nil
  139. RocketTarget = nil
  140. local m = Instance.new("Model",Character)
  141. m.Name = "WeaponModel"
  142.  
  143. local m2 = Instance.new("Model",Character)
  144. m2.Name = "MetalMan"
  145.  
  146. for i,v in pairs(Character.Head:children())do
  147. if v:IsA('Decal')then v:Destroy()end
  148. end
  149.  
  150.  
  151. Reaper = Instance.new("Model",Character)
  152. Reaper.Name = "Reaper"
  153. rh = Instance.new("Part")
  154. rh.Name = "rh"
  155. rh.Parent = Reaper
  156. rh.Locked = true
  157. rh.CanCollide = false
  158. mesh = Instance.new("SpecialMesh")
  159. rh.formFactor = "Symmetric"
  160. mesh.MeshType = "FileMesh"
  161. mesh.MeshId = "http://www.roblox.com/asset/?id=22149742"
  162. mesh.TextureId = "rbxassetid://188438213"
  163. mesh.Scale = Vector3.new(1,1,1)
  164. mesh.Parent = rh
  165. local weld = Instance.new("Weld")
  166. weld.Parent = rh
  167. weld.Part0 = rh
  168. weld.Part1 = Player.Character.Head
  169. weld.C0 = CFrame.new(0, 0, -0.010)*CFrame.Angles(0, 0, 0)
  170.  
  171. --save shoulders
  172. RSH, LSH=nil, nil
  173. --welds
  174. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  175. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  176. LH=Torso["Left Hip"]
  177. RH=Torso["Right Hip"]
  178. TorsoColor=Torso.BrickColor
  179. function NoOutline(Part)
  180. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  181. end
  182. player=Player
  183. ch=Character
  184. RSH=ch.Torso["Right Shoulder"]
  185. LSH=ch.Torso["Left Shoulder"]
  186. --
  187. RSH.Parent=nil
  188. LSH.Parent=nil
  189. --
  190. RW.Name="Right Shoulder"
  191. RW.Part0=ch.Torso
  192. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  193. RW.C1=cf(0, 0.5, 0)
  194. RW.Part1=ch["Right Arm"]
  195. RW.Parent=ch.Torso
  196. --
  197. LW.Name="Left Shoulder"
  198. LW.Part0=ch.Torso
  199. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  200. LW.C1=cf(0, 0.5, 0)
  201. LW.Part1=ch["Left Arm"]
  202. LW.Parent=ch.Torso
  203.  
  204. function swait(num)
  205. if num==0 or num==nil then
  206. game:service'RunService'.Heartbeat:wait(0)
  207. else
  208. for i=0,num do
  209. game:service'RunService'.Heartbeat:wait(0)
  210. end
  211. end
  212. end
  213.  
  214. function nooutline(part)
  215. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  216. end
  217.  
  218. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  219. local fp=it("Part")
  220. fp.formFactor=formfactor
  221. fp.Parent=parent
  222. fp.Reflectance=reflectance
  223. fp.Transparency=transparency
  224. fp.CanCollide=false
  225. fp.Locked=true
  226. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  227. fp.Name=name
  228. fp.Size=size
  229. fp.Position=Character.Torso.Position
  230. nooutline(fp)
  231. fp.Material=material
  232. fp:BreakJoints()
  233. return fp
  234. end
  235.  
  236. function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  237. local fp = it("Part")
  238. fp.formFactor = formfactor
  239. fp.Parent = parent
  240. fp.Reflectance = reflectance
  241. fp.Transparency = transparency
  242. fp.CanCollide = false
  243. fp.Locked=true
  244. fp.BrickColor = brickcolor
  245. fp.Name = name
  246. fp.Size = size
  247. fp.Position = EffectPart.Position
  248. NoOutline(fp)
  249. fp.Material="Neon"
  250. fp:BreakJoints()
  251. return fp
  252. end
  253.  
  254. function wweld(parent,part0,part1,c0)
  255. local weld=it("Weld")
  256. weld.Parent=parent
  257. weld.Part0=part0
  258. weld.Part1=part1
  259. weld.C0=c0
  260. return weld
  261. end
  262.  
  263. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  264. local mesh=it(Mesh)
  265. mesh.Parent=part
  266. if Mesh=="SpecialMesh" then
  267. mesh.MeshType=meshtype
  268. mesh.MeshId=meshid
  269. end
  270. mesh.Offset=offset
  271. mesh.Scale=scale
  272. return mesh
  273. end
  274.  
  275. function decal(part,face,texture,transparency,shiny,specular,name)
  276. local d=it("Decal",part)
  277. d.Shiny=shiny
  278. d.Face=face
  279. d.Specular=specular
  280. d.Transparency=transparency
  281. d.Texture=texture
  282. d.Name=name
  283. return d
  284. end
  285.  
  286. function weld(parent,part0,part1,c0,c1)
  287. local weld=it("Weld")
  288. weld.Parent=parent
  289. weld.Part0=part0
  290. weld.Part1=part1
  291. weld.C0=c0
  292. weld.C1=c1
  293. return weld
  294. end
  295.  
  296. so = function(id,par,vol,pit)
  297. coroutine.resume(coroutine.create(function()
  298. local sou = Instance.new("Sound",par or workspace)
  299. sou.Volume=vol
  300. sou.Pitch=pit or 1
  301. sou.SoundId=id
  302. swait()
  303. sou:play()
  304. game:GetService("Debris"):AddItem(sou,6)
  305. end))
  306. end
  307.  
  308. function clerp(a,b,t)
  309. local qa = {QuaternionFromCFrame(a)}
  310. local qb = {QuaternionFromCFrame(b)}
  311. local ax, ay, az = a.x, a.y, a.z
  312. local bx, by, bz = b.x, b.y, b.z
  313. local _t = 1-t
  314. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  315. end
  316.  
  317. function QuaternionFromCFrame(cf)
  318. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  319. local trace = m00 + m11 + m22
  320. if trace > 0 then
  321. local s = math.sqrt(1 + trace)
  322. local recip = 0.5/s
  323. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  324. else
  325. local i = 0
  326. if m11 > m00 then
  327. i = 1
  328. end
  329. if m22 > (i == 0 and m00 or m11) then
  330. i = 2
  331. end
  332. if i == 0 then
  333. local s = math.sqrt(m00-m11-m22+1)
  334. local recip = 0.5/s
  335. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  336. elseif i == 1 then
  337. local s = math.sqrt(m11-m22-m00+1)
  338. local recip = 0.5/s
  339. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  340. elseif i == 2 then
  341. local s = math.sqrt(m22-m00-m11+1)
  342. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  343. end
  344. end
  345. end
  346.  
  347. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  348. local xs, ys, zs = x + x, y + y, z + z
  349. local wx, wy, wz = w*xs, w*ys, w*zs
  350. local xx = x*xs
  351. local xy = x*ys
  352. local xz = x*zs
  353. local yy = y*ys
  354. local yz = y*zs
  355. local zz = z*zs
  356. 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))
  357. end
  358.  
  359. function QuaternionSlerp(a, b, t)
  360. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  361. local startInterp, finishInterp;
  362. if cosTheta >= 0.0001 then
  363. if (1 - cosTheta) > 0.0001 then
  364. local theta = math.acos(cosTheta)
  365. local invSinTheta = 1/math.sin(theta)
  366. startInterp = math.sin((1-t)*theta)*invSinTheta
  367. finishInterp = math.sin(t*theta)*invSinTheta
  368. else
  369. startInterp = 1-t
  370. finishInterp = t
  371. end
  372. else
  373. if (1+cosTheta) > 0.0001 then
  374. local theta = math.acos(-cosTheta)
  375. local invSinTheta = 1/math.sin(theta)
  376. startInterp = math.sin((t-1)*theta)*invSinTheta
  377. finishInterp = math.sin(t*theta)*invSinTheta
  378. else
  379. startInterp = t-1
  380. finishInterp = t
  381. end
  382. end
  383. 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
  384. end
  385.  
  386. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  387. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  388. end
  389.  
  390. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  391. if hit.Parent==nil then
  392. return
  393. end
  394. local h=hit.Parent:FindFirstChild("Humanoid")
  395. for _,v in pairs(hit.Parent:children()) do
  396. if v:IsA("Humanoid") then
  397. h=v
  398. end
  399. end
  400. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  401. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  402. end
  403. if hit.Parent.className=="Hat" then
  404. hit=hit.Parent.Parent:findFirstChild("Head")
  405. end
  406. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  407. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  408. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  409. return
  410. end]]
  411. -- hs(hit,1.2)
  412. local c=Instance.new("ObjectValue")
  413. c.Name="creator"
  414. c.Value=game:service("Players").LocalPlayer
  415. c.Parent=h
  416. game:GetService("Debris"):AddItem(c,.5)
  417. local Damage=math.random(minim,maxim)
  418. -- h:TakeDamage(Damage)
  419. local blocked=false
  420. local block=hit.Parent:findFirstChild("Block")
  421. if block~=nil then
  422. print(block.className)
  423. if block.className=="NumberValue" then
  424. if block.Value>0 then
  425. blocked=true
  426. if decreaseblock==nil then
  427. block.Value=block.Value-1
  428. end
  429. end
  430. end
  431. if block.className=="IntValue" then
  432. if block.Value>0 then
  433. blocked=true
  434. if decreaseblock~=nil then
  435. block.Value=block.Value-1
  436. end
  437. end
  438. end
  439. end
  440. if blocked==false then
  441. -- h:TakeDamage(Damage)
  442. h.Health=h.Health-Damage
  443. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  444. else
  445. h.Health=h.Health-(Damage/2)
  446. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  447. end
  448. if Type=="Knockdown" then
  449. local hum=hit.Parent.Humanoid
  450. hum.PlatformStand=true
  451. coroutine.resume(coroutine.create(function(HHumanoid)
  452. swait(1)
  453. HHumanoid.PlatformStand=false
  454. end),hum)
  455. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  456. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  457. local bodvol=Instance.new("BodyVelocity")
  458. bodvol.velocity=angle*knockback
  459. bodvol.P=0
  460. bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003)
  461. bodvol.Parent=hit
  462. local rl=Instance.new("BodyAngularVelocity")
  463. rl.P=0
  464. rl.maxTorque=Vector3.new(1,1,1)*1
  465. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  466. rl.Parent=hit
  467. game:GetService("Debris"):AddItem(bodvol,2)
  468. game:GetService("Debris"):AddItem(rl,2)
  469. elseif Type=="Normal" then
  470. local vp=Instance.new("BodyVelocity")
  471. vp.P=0
  472. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  473. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  474. if KnockbackType==1 then
  475. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/4
  476. elseif KnockbackType==2 then
  477. vp.velocity=Property.CFrame.lookVector*knockback
  478. end
  479. if knockback>0 then
  480. vp.Parent=hit.Parent.Torso
  481. end
  482. game:GetService("Debris"):AddItem(vp,.1)
  483. elseif Type=="Up" then
  484. local bodyVelocity=Instance.new("BodyVelocity")
  485. bodyVelocity.velocity=vt(0,60,0)
  486. bodyVelocity.P=0
  487. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  488. bodyVelocity.Parent=hit
  489. game:GetService("Debris"):AddItem(bodyVelocity,.1)
  490. local rl=Instance.new("BodyAngularVelocity")
  491. rl.P=0
  492. rl.maxTorque=Vector3.new(1,1,1)*1
  493. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  494. rl.Parent=hit
  495. game:GetService("Debris"):AddItem(rl,2)
  496. elseif Type=="Snare" then
  497. local bp=Instance.new("BodyPosition")
  498. bp.P=0
  499. bp.D=0
  500. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  501. bp.position=hit.Parent.Torso.Position
  502. bp.Parent=hit.Parent.Torso
  503. game:GetService("Debris"):AddItem(bp,.1)
  504. elseif Type=="Target" then
  505. local Targetting = false
  506. if Targetting==false then
  507. ZTarget=hit.Parent.Torso
  508. coroutine.resume(coroutine.create(function(Part)
  509. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  510. swait(5)
  511. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  512. end),ZTarget)
  513. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  514. local targetgui=Instance.new("BillboardGui")
  515. targetgui.Parent=ZTarget
  516. targetgui.Size=UDim2.new(10,100,10,100)
  517. local targ=Instance.new("ImageLabel")
  518. targ.Parent=targetgui
  519. targ.BackgroundTransparency=1
  520. targ.Image="rbxassetid://4834067"
  521. targ.Size=UDim2.new(1,0,1,0)
  522. cam.CameraType="Scriptable"
  523. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  524. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  525. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  526. Targetting=true
  527. RocketTarget=ZTarget
  528. for i=1,Property do
  529. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  530. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  531. swait()
  532. end
  533. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  534. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  535. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  536. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  537. end
  538. Targetting=false
  539. RocketTarget=nil
  540. targetgui.Parent=nil
  541. cam.CameraType="Custom"
  542. end
  543. end
  544. local debounce=Instance.new("BoolValue")
  545. debounce.Name="DebounceHit"
  546. debounce.Parent=hit.Parent
  547. debounce.Value=true
  548. game:GetService("Debris"):AddItem(debounce,1)
  549. c=Instance.new("ObjectValue")
  550. c.Name="creator"
  551. c.Value=Player
  552. c.Parent=h
  553. game:GetService("Debris"):AddItem(c,.5)
  554.  
  555. end
  556. end
  557.  
  558. for i,v in pairs(Character:children()) do
  559. if v:IsA("Accessory") then
  560. v:Destroy()
  561. end
  562. end
  563. for i,v in pairs(Character:children()) do
  564. if v:IsA("Hat") then
  565. v:Destroy()
  566. end
  567. end
  568.  
  569. shirt = Instance.new("Shirt", Character)
  570. shirt.Name = "Shirt"
  571. pants = Instance.new("Pants", Character)
  572. pants.Name = "Pants"
  573. Character.Shirt.ShirtTemplate = "rbxassetid://752801935"
  574. Character.Pants.PantsTemplate = "rbxassetid://769974956"
  575.  
  576. function ShowDamage(Pos, Text, Time, Color)
  577. local Rate = (1 / 30)
  578. local Pos = (Pos or Vector3.new(0, 0, 0))
  579. local Text = (Text or "")
  580. local Time = (Time or 2)
  581. local Color = (Color or Color3.new(1, 0, 0))
  582. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  583. EffectPart.Anchored = true
  584. local BillboardGui = Instance.new("BillboardGui")
  585. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  586. BillboardGui.Adornee = EffectPart
  587. local TextLabel = Instance.new("TextLabel")
  588. TextLabel.BackgroundTransparency = 1
  589. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  590. TextLabel.Text = Text
  591. TextLabel.TextColor3 = Color
  592. TextLabel.TextScaled = true
  593. TextLabel.Font = Enum.Font.ArialBold
  594. TextLabel.Parent = BillboardGui
  595. BillboardGui.Parent = EffectPart
  596. game.Debris:AddItem(EffectPart, (Time + 0.1))
  597. EffectPart.Parent = game:GetService("Workspace")
  598. delay(0, function()
  599. local Frames = (Time / Rate)
  600. for Frame = 1, Frames do
  601. wait(Rate)
  602. local Percent = (Frame / Frames)
  603. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  604. TextLabel.TextTransparency = Percent
  605. end
  606. if EffectPart and EffectPart.Parent then
  607. EffectPart:Destroy()
  608. end
  609. end)
  610. end
  611.  
  612. local RbxUtility = LoadLibrary("RbxUtility")
  613. local Create = RbxUtility.Create
  614. local co1 = 9
  615. local co2 = 20
  616. local co3 = 12
  617. local co4 = 45
  618. local cooldown1 = 0
  619. local cooldown2 = 0
  620. local cooldown3 = 0
  621. local cooldown4 = 0
  622. local skillcolorscheme = BrickColor.new("Pastel Blue").Color
  623. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  624. makeframe = function(par, trans, pos, size, color)
  625. local frame = Instance.new("Frame", par)
  626. frame.BackgroundTransparency = trans
  627. frame.BorderSizePixel = 0
  628. frame.Position = pos
  629. frame.Size = size
  630. frame.BackgroundColor3 = color
  631. return frame
  632. end
  633.  
  634.  
  635.  
  636.  
  637. CreatePart = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size, MeshId)
  638.  
  639. if PartType == "Part" then
  640. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  641. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  642. return Part
  643. else
  644. do
  645. if PartType == "WedgePart" then
  646. local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  647. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  648. return Part
  649. end
  650. end
  651. end
  652. end
  653.  
  654. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  655.  
  656. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  657. if Mesh == "SpecialMesh" then
  658. Msh.MeshType = MeshType
  659. Msh.MeshId = MeshId
  660. end
  661. return Msh
  662. end
  663.  
  664. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  665.  
  666. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  667. return Weld
  668. end
  669.  
  670. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  671.  
  672. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  673. return Weld
  674. end
  675. }
  676.  
  677. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
  678. handle.Transparency = 1
  679. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  680. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  681. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  682. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
  683. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  684. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  685. mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
  686. Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  687. WedgeWeld = CreateWeld(m, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  688. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
  689. --editing--
  690. WedgeSpot = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  691. WedgeWeld = CreateWeld(m, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  692. mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
  693. --editing--
  694. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  695. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  696. EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  697. EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  698. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
  699. EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  700. EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  701.  
  702.  
  703. handle=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,0,"Ghost grey","Handle",Vector3.new(0.2, .4, 0.12))
  704. handle.Transparency = 1
  705. handleweld=weld(m2,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.Angles(math.rad(0),math.rad(0),math.rad(270))*CFrame.new(-1.35, -0.0401109691, 0.0168789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
  706. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  707. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-1.1045, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  708. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(1.9,6.84,6.84))
  709. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  710. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))*CFrame.new(-1.7929, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  711. mesh("SpecialMesh",Wedge,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1527559",Vector3.new(0, 0, 0),Vector3.new(0.811,0.811,0.811))
  712. Wedge = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Deep blue", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  713. WedgeWeld = CreateWeld(m2, handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.62, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  714. mesh("SpecialMesh",Wedge,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(4.5,4.5,4.5))
  715. --editing--
  716. WedgeSpot = CreatePart(m2, Enum.Material.SmoothPlastic, 0, 0, "WedgePart", "Bright red", "Wedge", Vector3.new(0.10, 0.4, 0.2))
  717. WedgeWeld = CreateWeld(m2, handle, WedgeSpot, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-2.84, -0.00691109691, 0.0418789339, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
  718. mesh("SpecialMesh",WedgeSpot,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1.65,1.8,3.5))
  719. --editing--
  720. Hitbox=part(Enum.FormFactor.Custom,m2,Enum.Material.Plastic,0,1,"Really black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
  721. Hitboxweld=weld(m2,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.107657909, -3.55914412, 0.00325751305, 0.999999821, -0.00011339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
  722. EffectPart=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  723. EffectPartweld=weld(m2,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
  724. mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(0.1,0.2,1))
  725. EffectPart2=part(Enum.FormFactor.Custom,m2,Enum.Material.Metal,0,1,"Really black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  726. EffectPart2weld=weld(m2,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
  727.  
  728. DarkRiftF=function(par)
  729. while lol == true do
  730. wait()
  731. local PWN={}
  732. for _,v in pairs(game.Workspace:children()) do
  733. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  734. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  735. table.insert(PWN,v.Torso)
  736. end
  737. end
  738. end
  739. for _,t in pairs(PWN) do
  740. local targ=par.Position-t.Position
  741. local Mag=targ.magnitude
  742. if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
  743. if Mag<=30 then
  744. t.Parent.Humanoid:TakeDamage(.5)
  745. local rl=Instance.new("BodyAngularVelocity")
  746. rl.P=3000
  747. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  748. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  749. rl.Parent=t
  750. game:GetService("Debris"):AddItem(rl,.1)
  751. end
  752. if Mag<=20 then
  753. t.Parent.Humanoid:TakeDamage(.1)
  754. else
  755. local vl=Instance.new("BodyVelocity")
  756. vl.P=3000
  757. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  758. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  759. vl.Parent=t
  760. game:GetService("Debris"):AddItem(vl,.1)
  761. end
  762. end
  763. end
  764. wait(.08)
  765. end
  766. end
  767.  
  768. function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
  769. local msh1 = Instance.new("BlockMesh")
  770. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  771. local S=Instance.new("Part")
  772. S.Name="Effect"
  773. S.Material="Neon"
  774. S.formFactor=0
  775. S.Size=Vector3.new(x1,y1,z1)
  776. S.BrickColor=color
  777. S.Reflectance = 0
  778. S.TopSurface=0
  779. S.BottomSurface=0
  780. S.Transparency=0
  781. S.Anchored=false
  782. S.CanCollide=false
  783. S.CFrame=part.CFrame
  784. S.Parent=game.Workspace
  785. msh1.Parent = S
  786. local W=Instance.new("Weld")
  787. W.Parent=S
  788. W.Part0=S
  789. W.Part1=part
  790. W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  791. W.Parent=nil
  792. S.Anchored=true
  793. coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
  794. end
  795.  
  796. local function BlackHole(parent,cframe)
  797. local effectsmsh = Instance.new("SpecialMesh")
  798. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  799. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  800. effectsmsh.Scale = Vector3.new(3,3,3)
  801. local effectsg = Instance.new("Part")
  802. effectsg.formFactor = 3
  803. effectsg.CanCollide = false
  804. effectsg.Name = "Effect"
  805. effectsg.Locked = true
  806. effectsg.Transparency = 1
  807. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  808. effectsg.Parent = parent
  809. effectsg.BrickColor = BrickColor.new("Royal purple")
  810. effectsg.Material="Neon"
  811. coroutine.resume(coroutine.create(function(Part,Mesh)
  812. local Mesh = Instance.new("SpecialMesh")
  813. Mesh.Scale = Vector3.new(0.5,0.5,0.5)
  814. Mesh.MeshType = "Sphere"
  815. -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
  816. Part=Instance.new("Part")
  817. Part.Name="Effect"
  818. Part.formFactor=0
  819. Part.Size=Vector3.new(1,1,1)
  820. Part.BrickColor=BrickColor.new("Royal purple")
  821. Part.Material="Neon"
  822. Part.Reflectance = 0
  823. Part.TopSurface=0
  824. Part.BottomSurface=0
  825. Part.Transparency=0
  826. Part.Anchored=true
  827. NoOutline(Part)
  828. Part.CanCollide=false
  829. Part.CFrame=cframe
  830. Part.Parent=parent
  831. Mesh.Parent = Part
  832. lol=true
  833. coroutine.resume(coroutine.create(function()
  834. DarkRiftF(Part)
  835. end))
  836. for i=0,200 do
  837. wait()
  838. DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple"))
  839. Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
  840. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  841. end
  842. local fff=200
  843. for i=0,100 do
  844. wait()
  845. DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple"))
  846. Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  847. end
  848. for i=0,1,0.05 do
  849. wait()
  850. Part.Transparency=Part.Transparency+0.05
  851. Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
  852. end
  853. lol=false
  854. Part.Parent=nil
  855. end),nil,nil)
  856. end
  857.  
  858. function makeShockwave(height,color,speed,range,pulse)
  859. local range = range or 2000
  860. local p = Instance.new("Part")
  861. p.Anchored = true
  862. p.CanCollide = false
  863. p.FormFactor = "Custom"
  864. p.BrickColor = color
  865. p.Parent = workspace
  866. local m = Instance.new("SpecialMesh",p)
  867. m.MeshId = "rbxassetid://3270017"
  868. local estimateSurvival = math.floor(range/speed) * 0.03
  869. game:GetService("Debris"):AddItem(p,estimateSurvival)
  870. Spawn(function ()
  871. for i = 1,range,speed do
  872. p.Transparency = 1-math.min(0.5,3-(i/500))
  873. m.Scale = Vector3.new(i,i,i*height)
  874. p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
  875. wait()
  876. end
  877. p:Destroy()
  878. end)
  879. end
  880.  
  881. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  882. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  883. prt.Anchored=true
  884. prt.CFrame=cframe
  885. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
  886. game:GetService("Debris"):AddItem(prt,2)
  887. coroutine.resume(coroutine.create(function(Part,Mesh)
  888. for i=0,2,delay do
  889. wait()
  890. Part.CFrame=Part.CFrame
  891. Part.Transparency=i
  892. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  893. end
  894. Part.Parent=nil
  895. end),prt,msh)
  896. end
  897.  
  898. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  899. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  900. prt.Anchored=true
  901. prt.CFrame=cframe
  902. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  903. game:GetService("Debris"):AddItem(prt,5)
  904. coroutine.resume(coroutine.create(function(Part,Mesh)
  905. for i=0,1,delay do
  906. wait()
  907. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  908. Part.Transparency=i
  909. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  910. end
  911. Part.Parent=nil
  912. end),prt,msh)
  913. end
  914.  
  915. local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  916. local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
  917. if Type~=2 then
  918. prt.Anchored=true
  919. end
  920. prt.CFrame=cframe
  921. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  922. game:GetService("Debris"):AddItem(prt,5)
  923. coroutine.resume(coroutine.create(function(Part,Mesh,dur)
  924. local wld=nil
  925. if dur==2 then
  926. wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
  927. end
  928. for i=0,1,delay do
  929. swait()
  930. if dur==1 then
  931. Part.CFrame=Part.CFrame
  932. elseif dur==2 then
  933. wld.C0=cframe
  934. end
  935. Part.Transparency=i
  936. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  937. end
  938. Part.Parent=nil
  939. end),prt,msh,Type)
  940. end
  941.  
  942. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  943. local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  944. prt.Anchored=true
  945. prt.CFrame=cframe
  946. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  947. game:GetService("Debris"):AddItem(prt,5)
  948. coroutine.resume(coroutine.create(function(Part,Mesh)
  949. for i=0,1,delay do
  950. swait()
  951. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  952. Part.Transparency=i
  953. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  954. end
  955. Part.Parent=nil
  956. end),prt,msh)
  957. end
  958.  
  959. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  960. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  961. prt.Anchored=true
  962. prt.CFrame=cframe
  963. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  964. game:GetService("Debris"):AddItem(prt,5)
  965. coroutine.resume(coroutine.create(function(Part,Mesh)
  966. for i=0,1,delay do
  967. wait()
  968. Part.CFrame=Part.CFrame
  969. Part.Transparency=i
  970. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  971. end
  972. Part.Parent=nil
  973. end),prt,msh)
  974. end
  975.  
  976. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  977. local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
  978. prt.Anchored=true
  979. prt.CFrame=cframe
  980. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  981. game:GetService("Debris"):AddItem(prt,5)
  982. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
  983. end
  984.  
  985. function Blast(parent)
  986. MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  987. MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
  988. end
  989.  
  990. function ChargeBall(parent,t)
  991. local counter=0
  992. local size=1
  993. for i=0,t,1 do
  994. swait()
  995. counter=counter+1
  996. if counter%10==0 then
  997. if size==3 then
  998. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  999. elseif size==2 then
  1000. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1001. end
  1002. end
  1003. if counter%5==0 then
  1004. if size==1 then
  1005. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1006. elseif size==2 then
  1007. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1008. elseif size==3 then
  1009. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1010. end
  1011. end
  1012. end
  1013. end
  1014.  
  1015. function ChargeBall2(parent,t)
  1016. local counter=0
  1017. local size=1
  1018. for i=0,t,1 do
  1019. swait()
  1020. counter=counter+1
  1021. if counter%10==0 then
  1022. if size==3 then
  1023. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1024. elseif size==2 then
  1025. MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1026. end
  1027. end
  1028. if counter%5==0 then
  1029. if size==1 then
  1030. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1031. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1032. elseif size==2 then
  1033. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1034. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1035. elseif size==3 then
  1036. MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
  1037. MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
  1038. end
  1039. end
  1040. end
  1041. end
  1042.  
  1043. function MagniDamage(Part,dis,mind,maxd,force,knock)
  1044. for _,c in pairs(workspace:children()) do
  1045. local hum=c:findFirstChild("Humanoid")
  1046. if hum~=nil then
  1047. local head=c:findFirstChild("Torso")
  1048. if head~=nil then
  1049. local targ=head.Position-Part.Position
  1050. local mag=targ.magnitude
  1051. if mag<=dis and c.Name~=Character.Name then
  1052. Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
  1053. end
  1054. end
  1055. end
  1056. end
  1057. end
  1058.  
  1059.  
  1060. function computeDirection(vec)
  1061. local lenSquared = vec.magnitude * vec.magnitude
  1062. local invSqrt = 1 / math.sqrt(lenSquared)
  1063. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  1064. end
  1065.  
  1066. local rarmc1 = RW.C1
  1067. local larmc1 = LW.C1
  1068. local rlegc1 = RH.C1
  1069. local llegc1 = LH.C1
  1070. function PlayAnimationFromTable(table, speed, bool)
  1071. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  1072. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  1073. RW.C0 = clerp(RW.C0, table[3], speed)
  1074. LW.C0 = clerp(LW.C0, table[4], speed)
  1075. RH.C0 = clerp(RH.C0, table[5], speed)
  1076. LH.C0 = clerp(LH.C0, table[6], speed)
  1077. if bool == true then
  1078. if resetc1 == false then
  1079. resetc1 = true
  1080. RootJoint.C1 = RootJoint.C1
  1081. Torso.Neck.C1 = Torso.Neck.C1
  1082. RW.C1 = rarmc1
  1083. LW.C1 = larmc1
  1084. RH.C1 = rlegc1
  1085. LH.C1 = llegc1
  1086. end
  1087. end
  1088. end
  1089.  
  1090. function GetsugaTenshou()
  1091. attack=true
  1092. local chargecounter = 0
  1093. for i=0,1,.25 do
  1094. swait()
  1095. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1096. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1097. end
  1098. chargecounter = chargecounter + 1
  1099. wait(0.1)
  1100. local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"New Yeller","Wave",Vector3.new(1,1,1)) Wave.Parent = WedgeSpot
  1101. Wave.Material = 'Neon'
  1102. Wave.Transparency = 0
  1103. Wave.Shape = "Ball"
  1104. Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
  1105. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*185
  1106. so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
  1107. if Humanoid~=nil and bounce==false then
  1108. bounce=true
  1109. Wave.Touched:connect(function(hit)
  1110. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
  1111. Damagefunc(Wave,hit,5,8,math.random(3,3),"Normal",RootPart,.2,1)
  1112. end
  1113. end)
  1114. end
  1115.  
  1116.  
  1117. for i = 0,1,0.11 do
  1118. swait()
  1119. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1120. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1121. end
  1122. attack=false
  1123. bounce=false
  1124. scfr=nil
  1125. end
  1126.  
  1127. function Mugetsu()
  1128. attack=true
  1129. for i=0,1,.25 do
  1130. swait()
  1131. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1132. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1133. end
  1134. wait(0.3)
  1135. spawn(function()
  1136. for i=1,55 do
  1137. wait()
  1138. local c = Character
  1139. local radius = 8
  1140. local pos = WedgeSpot.CFrame
  1141. local clrz = {'Cyan','Teal'};
  1142. for i = 1,2.7 do
  1143. local clr = clrz[math.random(1,#clrz)]
  1144. pos = WedgeSpot.CFrame
  1145. local p = Instance.new('Part',c)
  1146. local mafa = math.random(-360,360)
  1147. p.CanCollide = false
  1148. p.Size = Vector3.new(1,1,1)
  1149. local m = Instance.new('SpecialMesh',p)
  1150. m.MeshType = 'Sphere'
  1151. spawn(function()
  1152. for i = 0,50 do
  1153. local int,int2 = .05,.05
  1154. m.Scale = m.Scale - Vector3.new(int,int,int)
  1155. p.Transparency = p.Transparency + int2
  1156. swait()
  1157. end
  1158. end)
  1159. p.BrickColor = BrickColor.new(clr)
  1160. p.Material = 'Neon'
  1161. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1162. local bp = Instance.new('BodyPosition',p)
  1163. bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0)
  1164. bp.D = 100
  1165. bp.P = 300
  1166. bp.Position = pos.p
  1167. game.Debris:AddItem(p,10)
  1168. end
  1169. end
  1170. end)
  1171. wait(3)
  1172. local Wave=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Cyan","Wave",Vector3.new(10,10,10)) Wave.Parent = WedgeSpot
  1173. Wave.Material = "Neon"
  1174. Wave.Transparency = 0
  1175. Wave.Shape = "Ball"
  1176. Wave.CFrame = WedgeSpot.CFrame*CFrame.new(0,0,0)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
  1177. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*180
  1178. so("http://www.roblox.com/asset/?id=50638397", 22,handle,1,.9)
  1179.  
  1180. if Humanoid~=nil and bounce==false then
  1181. bounce=true
  1182. Wave.Touched:connect(function(hit)
  1183. if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Name ~= "Reaper" and hit.Parent.Name ~= "Reaper2" and hit.Parent.Name ~= "WeaponModel" then
  1184. Damagefunc(Wave,hit,80,90,math.random(3,3),"Normal",RootPart,.2,1)
  1185. end
  1186. end)
  1187. end
  1188.  
  1189.  
  1190. for i = 0,1,0.11 do
  1191. swait()
  1192. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)),0.5)
  1193. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1194. end
  1195. attack=false
  1196. bounce=false
  1197. scfr=nil
  1198. end
  1199. mouse.KeyDown:connect(function(k)
  1200. k=k:lower()
  1201. if attack == false and k == 'e' then
  1202. Mugetsu()
  1203. end
  1204. if attack == false and k == 'q' then
  1205. GetsugaTenshou()
  1206. end
  1207. if attack == false and k == '1' and deeznuts==false then
  1208. deeznuts=true
  1209. MetalMan()
  1210. deeznuts=false
  1211. end
  1212. if attack == false and k == '0' and deeznuts==false then
  1213. cooldown=true
  1214. MegaMan()
  1215. deeznuts=false
  1216. end
  1217. end)
  1218.  
  1219.  
  1220. local sine = 0
  1221. local change = 1
  1222. local val = 0
  1223.  
  1224. while true do
  1225. swait()
  1226. sine = sine + change
  1227. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1228. local velderp=RootPart.Velocity.y
  1229. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1230. if equipped==true or equipped==false then
  1231. if attack==false then
  1232. idle=idle+1
  1233. else
  1234. idle=0
  1235. end
  1236. if idle>=500 then
  1237. if attack==false then
  1238. end
  1239. end
  1240.  
  1241. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1242. Anim="Jump"
  1243. if attack==false then
  1244. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1245. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1246. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
  1247. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
  1248. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1249. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1250. end
  1251. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1252. Anim="Fall"
  1253. if attack==false then
  1254. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1255. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
  1256. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
  1257. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  1258. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1259. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1260. end
  1261. elseif torvel<1 and hitfloor~=nil then
  1262. Anim="Idle"
  1263. if attack==false then
  1264. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3)
  1268. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
  1269. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3)
  1270. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1271. end
  1272. elseif torvel>2 and hitfloor~=nil then
  1273. Anim="Walk"
  1274. if attack==false then
  1275. change=3
  1276. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1277. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1278. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(70)*math.cos(sine/16.5), math.rad(6), math.rad(5)), 0.2)
  1279. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-70)*math.cos(sine/-16.5), math.rad(-6), math.rad(-5)), 0.2)
  1280. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2)*math.cos(sine/16),math.rad(90),math.rad(0)),.3)
  1281. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4*math.cos(sine/-16)),math.rad(-90),math.rad(0)),.3)
  1282. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1283. end
  1284. end
  1285. end
  1286. if #Effects>0 then
  1287. for e=1,#Effects do
  1288. if Effects[e]~=nil then
  1289. local Thing=Effects[e]
  1290. if Thing~=nil then
  1291. local Part=Thing[1]
  1292. local Mode=Thing[2]
  1293. local Delay=Thing[3]
  1294. local IncX=Thing[4]
  1295. local IncY=Thing[5]
  1296. local IncZ=Thing[6]
  1297. if Thing[1].Transparency<=1 then
  1298. if Thing[2]=="Block1" then
  1299. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1300. Mesh=Thing[1].Mesh
  1301. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1302. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1303. elseif Thing[2]=="Cylinder" then
  1304. Mesh=Thing[1].Mesh
  1305. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1306. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1307. elseif Thing[2]=="Blood" then
  1308. Mesh=Thing[7]
  1309. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1310. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1311. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1312. elseif Thing[2]=="Elec" then
  1313. Mesh=Thing[1].Mesh
  1314. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1315. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1316. elseif Thing[2]=="Disappear" then
  1317. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1318. end
  1319. else
  1320. Part.Parent=nil
  1321. table.remove(Effects,e)
  1322. end
  1323. end
  1324. end
  1325. end
  1326. end
  1327. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement