Advertisement
Ban43_GodOfEdits

test megaman

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