Advertisement
samuelrichter66

ya ya ya to totally screw- LEMON!

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