Advertisement
c3ax

Untitled

Nov 13th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.96 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. -- Converted With Syntax's Script Converter
  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. m=Instance.new('Model',Character)
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  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. attackdebounce = false
  45. deb=false
  46. equipped=true
  47. hand=false
  48. MMouse=nil
  49. combo=0
  50. mana=0
  51. trispeed=.2
  52. attackmode='none'
  53. local idle=0
  54. local Anim="Idle"
  55. local Effects={}
  56. local gun=false
  57. local shoot=false
  58. player=nil
  59. mana=0
  60.  
  61. mouse=Player:GetMouse()
  62. --save shoulders
  63. RSH, LSH=nil, nil
  64. --welds
  65. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  66. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  67. LH=Torso["Left Hip"]
  68. RH=Torso["Right Hip"]
  69. TorsoColor=Torso.BrickColor
  70. function NoOutline(Part)
  71. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  72. end
  73. player=Player
  74. ch=Character
  75. RSH=ch.Torso["Right Shoulder"]
  76. LSH=ch.Torso["Left Shoulder"]
  77. --
  78. RSH.Parent=nil
  79. LSH.Parent=nil
  80. --
  81. RW.Name="Right Shoulder"
  82. RW.Part0=ch.Torso
  83. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  84. RW.C1=cf(0, 0.5, 0)
  85. RW.Part1=ch["Right Arm"]
  86. RW.Parent=ch.Torso
  87. --
  88. LW.Name="Left Shoulder"
  89. LW.Part0=ch.Torso
  90. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  91. LW.C1=cf(0, 0.5, 0)
  92. LW.Part1=ch["Left Arm"]
  93. LW.Parent=ch.Torso
  94.  
  95. Player=game:GetService('Players').LocalPlayer
  96. Character=Player.Character
  97. Mouse=Player:GetMouse()
  98. m=Instance.new('Model',Character)
  99.  
  100.  
  101. local function weldBetween(a, b)
  102. local weldd = Instance.new("ManualWeld")
  103. weldd.Part0 = a
  104. weldd.Part1 = b
  105. weldd.C0 = CFrame.new()
  106. weldd.C1 = b.CFrame:inverse() * a.CFrame
  107. weldd.Parent = a
  108. return weldd
  109. end
  110.  
  111. function swait(num)
  112. if num==0 or num==nil then
  113. game:service'RunService'.Stepped:wait(0)
  114. else
  115. for i=0,num do
  116. game:service'RunService'.Stepped:wait(0)
  117. end
  118. end
  119. end
  120.  
  121. function nooutline(part)
  122. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  123. end
  124.  
  125. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  126. local fp=it("Part")
  127. fp.formFactor=formfactor
  128. fp.Parent=parent
  129. fp.Reflectance=reflectance
  130. fp.Transparency=transparency
  131. fp.CanCollide=false
  132. fp.Locked=true
  133. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  134. fp.Name=name
  135. fp.Size=size
  136. fp.Position=Character.Torso.Position
  137. nooutline(fp)
  138. fp.Material=material
  139. fp:BreakJoints()
  140. return fp
  141. end
  142.  
  143. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  144. local mesh=it(Mesh)
  145. mesh.Parent=part
  146. if Mesh=="SpecialMesh" then
  147. mesh.MeshType=meshtype
  148. mesh.MeshId=meshid
  149. end
  150. mesh.Offset=offset
  151. mesh.Scale=scale
  152. return mesh
  153. end
  154.  
  155. function weld(parent,part0,part1,c0,c1)
  156. local weld=it("Weld")
  157. weld.Parent=parent
  158. weld.Part0=part0
  159. weld.Part1=part1
  160. weld.C0=c0
  161. weld.C1=c1
  162. return weld
  163. end
  164.  
  165.  
  166. local function CFrameFromTopBack(at, top, back)
  167. local right = top:Cross(back)
  168. return CFrame.new(at.x, at.y, at.z,
  169. right.x, top.x, back.x,
  170. right.y, top.y, back.y,
  171. right.z, top.z, back.z)
  172. end
  173.  
  174. function Triangle(a, b, c)
  175. local edg1 = (c-a):Dot((b-a).unit)
  176. local edg2 = (a-b):Dot((c-b).unit)
  177. local edg3 = (b-c):Dot((a-c).unit)
  178. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  179. a, b, c = a, b, c
  180. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  181. a, b, c = b, c, a
  182. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  183. a, b, c = c, a, b
  184. else
  185. assert(false, "unreachable")
  186. end
  187.  
  188. local len1 = (c-a):Dot((b-a).unit)
  189. local len2 = (b-a).magnitude - len1
  190. local width = (a + (b-a).unit*len1 - c).magnitude
  191.  
  192. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  193.  
  194. local list = {}
  195.  
  196. local TrailColor = ("Dark grey")
  197.  
  198. if len1 > 0.01 then
  199. local w1 = Instance.new('WedgePart', m)
  200. game:GetService("Debris"):AddItem(w1,5)
  201. w1.Material = "SmoothPlastic"
  202. w1.FormFactor = 'Custom'
  203. w1.BrickColor = BrickColor.new(TrailColor)
  204. w1.Transparency = 0
  205. w1.Reflectance = 0
  206. w1.Material = "SmoothPlastic"
  207. w1.CanCollide = false
  208. NoOutline(w1)
  209. local sz = Vector3.new(0.2, width, len1)
  210. w1.Size = sz
  211. local sp = Instance.new("SpecialMesh",w1)
  212. sp.MeshType = "Wedge"
  213. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  214. w1:BreakJoints()
  215. w1.Anchored = true
  216. w1.Parent = workspace
  217. w1.Transparency = 0.7
  218. table.insert(Effects,{w1,"Disappear",.01})
  219. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  220. table.insert(list,w1)
  221. end
  222.  
  223. if len2 > 0.01 then
  224. local w2 = Instance.new('WedgePart', m)
  225. game:GetService("Debris"):AddItem(w2,5)
  226. w2.Material = "SmoothPlastic"
  227. w2.FormFactor = 'Custom'
  228. w2.BrickColor = BrickColor.new(TrailColor)
  229. w2.Transparency = 0
  230. w2.Reflectance = 0
  231. w2.Material = "SmoothPlastic"
  232. w2.CanCollide = false
  233. NoOutline(w2)
  234. local sz = Vector3.new(0.2, width, len2)
  235. w2.Size = sz
  236. local sp = Instance.new("SpecialMesh",w2)
  237. sp.MeshType = "Wedge"
  238. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  239. w2:BreakJoints()
  240. w2.Anchored = true
  241. w2.Parent = workspace
  242. w2.Transparency = 0.7
  243. table.insert(Effects,{w2,"Disappear",.01})
  244. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  245. table.insert(list,w2)
  246. end
  247. return unpack(list)
  248. end
  249.  
  250.  
  251. so = function(id,par,vol,pit)
  252. coroutine.resume(coroutine.create(function()
  253. local sou = Instance.new("Sound",par or workspace)
  254. sou.Volume=vol
  255. sou.Pitch=pit or 1
  256. sou.SoundId=id
  257. swait()
  258. sou:play()
  259. game:GetService("Debris"):AddItem(sou,6)
  260. end))
  261. end
  262.  
  263. function clerp(a,b,t)
  264. local qa = {QuaternionFromCFrame(a)}
  265. local qb = {QuaternionFromCFrame(b)}
  266. local ax, ay, az = a.x, a.y, a.z
  267. local bx, by, bz = b.x, b.y, b.z
  268. local _t = 1-t
  269. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  270. end
  271.  
  272. function QuaternionFromCFrame(cf)
  273. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  274. local trace = m00 + m11 + m22
  275. if trace > 0 then
  276. local s = math.sqrt(1 + trace)
  277. local recip = 0.5/s
  278. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  279. else
  280. local i = 0
  281. if m11 > m00 then
  282. i = 1
  283. end
  284. if m22 > (i == 0 and m00 or m11) then
  285. i = 2
  286. end
  287. if i == 0 then
  288. local s = math.sqrt(m00-m11-m22+1)
  289. local recip = 0.5/s
  290. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  291. elseif i == 1 then
  292. local s = math.sqrt(m11-m22-m00+1)
  293. local recip = 0.5/s
  294. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  295. elseif i == 2 then
  296. local s = math.sqrt(m22-m00-m11+1)
  297. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  298. end
  299. end
  300. end
  301.  
  302. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  303. local xs, ys, zs = x + x, y + y, z + z
  304. local wx, wy, wz = w*xs, w*ys, w*zs
  305. local xx = x*xs
  306. local xy = x*ys
  307. local xz = x*zs
  308. local yy = y*ys
  309. local yz = y*zs
  310. local zz = z*zs
  311. 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))
  312. end
  313.  
  314. function QuaternionSlerp(a, b, t)
  315. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  316. local startInterp, finishInterp;
  317. if cosTheta >= 0.0001 then
  318. if (1 - cosTheta) > 0.0001 then
  319. local theta = math.acos(cosTheta)
  320. local invSinTheta = 1/math.sin(theta)
  321. startInterp = math.sin((1-t)*theta)*invSinTheta
  322. finishInterp = math.sin(t*theta)*invSinTheta
  323. else
  324. startInterp = 1-t
  325. finishInterp = t
  326. end
  327. else
  328. if (1+cosTheta) > 0.0001 then
  329. local theta = math.acos(-cosTheta)
  330. local invSinTheta = 1/math.sin(theta)
  331. startInterp = math.sin((t-1)*theta)*invSinTheta
  332. finishInterp = math.sin(t*theta)*invSinTheta
  333. else
  334. startInterp = t-1
  335. finishInterp = t
  336. end
  337. end
  338. 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
  339. end
  340.  
  341. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  342.  
  343.  
  344. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  345. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  346. end
  347.  
  348. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  349. if hit.Parent==nil then
  350. return
  351. end
  352. h=hit.Parent:FindFirstChild("Humanoid")
  353. for _,v in pairs(hit.Parent:children()) do
  354. if v:IsA("Humanoid") then
  355. h=v
  356. end
  357. end
  358. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  359. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  360. end
  361. if hit.Parent.className=="Hat" then
  362. hit=hit.Parent.Parent:findFirstChild("Head")
  363. end
  364. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  365. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  366. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  367. return
  368. end]]
  369. -- hs(hit,1.2)
  370. c=Instance.new("ObjectValue")
  371. c.Name="creator"
  372. c.Value=game:service("Players").LocalPlayer
  373. c.Parent=h
  374. game:GetService("Debris"):AddItem(c,.5)
  375. Damage=math.random(minim,maxim)
  376. -- h:TakeDamage(Damage)
  377. blocked=false
  378. block=hit.Parent:findFirstChild("Block")
  379. if block~=nil then
  380. print(block.className)
  381. if block.className=="NumberValue" then
  382. if block.Value>0 then
  383. blocked=true
  384. if decreaseblock==nil then
  385. block.Value=block.Value-1
  386. end
  387. end
  388. end
  389. if block.className=="IntValue" then
  390. if block.Value>0 then
  391. blocked=true
  392. if decreaseblock~=nil then
  393. block.Value=block.Value-1
  394. end
  395. end
  396. end
  397. end
  398. if blocked==false then
  399. -- h:TakeDamage(Damage)
  400. h.Health=h.Health-Damage
  401. showDamage(hit.Parent,Damage,.5,BrickColor.new("Cyan"))
  402. else
  403. h.Health=h.Health-(Damage/2)
  404. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  405. end
  406. if Type=="Knockdown" then
  407. hum=hit.Parent.Humanoid
  408. hum.PlatformStand=true
  409. coroutine.resume(coroutine.create(function(HHumanoid)
  410. swait(1)
  411. HHumanoid.PlatformStand=false
  412. end),hum)
  413. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  414. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  415. local bodvol=Instance.new("BodyVelocity")
  416. bodvol.velocity=angle*knockback
  417. bodvol.P=5000
  418. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  419. bodvol.Parent=hit
  420. rl=Instance.new("BodyAngularVelocity")
  421. rl.P=3000
  422. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  423. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  424. rl.Parent=hit
  425. game:GetService("Debris"):AddItem(bodvol,.5)
  426. game:GetService("Debris"):AddItem(rl,.5)
  427. elseif Type=="Normal" then
  428. vp=Instance.new("BodyVelocity")
  429. vp.P=500
  430. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  431. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  432. if KnockbackType==1 then
  433. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  434. elseif KnockbackType==2 then
  435. vp.velocity=Property.CFrame.lookVector*knockback
  436. end
  437. if knockback>0 then
  438. vp.Parent=hit.Parent.Torso
  439. end
  440. game:GetService("Debris"):AddItem(vp,.5)
  441. elseif Type=="Up" then
  442. local bodyVelocity=Instance.new("BodyVelocity")
  443. bodyVelocity.velocity=vt(0,60,0)
  444. bodyVelocity.P=5000
  445. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  446. bodyVelocity.Parent=hit
  447. game:GetService("Debris"):AddItem(bodyVelocity,1)
  448. rl=Instance.new("BodyAngularVelocity")
  449. rl.P=3000
  450. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  451. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  452. rl.Parent=hit
  453. game:GetService("Debris"):AddItem(rl,.5)
  454. elseif Type=="Snare" then
  455. bp=Instance.new("BodyPosition")
  456. bp.P=2000
  457. bp.D=100
  458. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  459. bp.position=hit.Parent.Torso.Position
  460. bp.Parent=hit.Parent.Torso
  461. game:GetService("Debris"):AddItem(bp,1)
  462. elseif Type=="Target" then
  463. if Targetting==false then
  464. ZTarget=hit.Parent.Torso
  465. coroutine.resume(coroutine.create(function(Part)
  466. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  467. swait(5)
  468. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  469. end),ZTarget)
  470. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  471. targetgui=Instance.new("BillboardGui")
  472. targetgui.Parent=ZTarget
  473. targetgui.Size=UDim2.new(10,100,10,100)
  474. targ=Instance.new("ImageLabel")
  475. targ.Parent=targetgui
  476. targ.BackgroundTransparency=1
  477. targ.Image="rbxassetid://4834067"
  478. targ.Size=UDim2.new(1,0,1,0)
  479. cam.CameraType="Scriptable"
  480. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  481. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  482. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  483. Targetting=true
  484. RocketTarget=ZTarget
  485. for i=1,Property do
  486. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  487. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  488. swait()
  489. end
  490. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  491. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  492. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  493. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  494. end
  495. Targetting=false
  496. RocketTarget=nil
  497. targetgui.Parent=nil
  498. cam.CameraType="Custom"
  499. end
  500. end
  501. debounce=Instance.new("BoolValue")
  502. debounce.Name="DebounceHit"
  503. debounce.Parent=hit.Parent
  504. debounce.Value=true
  505. game:GetService("Debris"):AddItem(debounce,Delay)
  506. c=Instance.new("ObjectValue")
  507. c.Name="creator"
  508. c.Value=Player
  509. c.Parent=h
  510. game:GetService("Debris"):AddItem(c,.5)
  511. CRIT=false
  512. hitDeb=true
  513. AttackPos=6
  514. end
  515. end
  516.  
  517. showDamage=function(Char,Dealt,du,Color)
  518. m=Instance.new("Model")
  519. m.Name=tostring(Dealt)
  520. h=Instance.new("Humanoid")
  521. h.Health=0
  522. h.MaxHealth=0
  523. h.Parent=m
  524. c=Instance.new("Part")
  525. c.Transparency=0
  526. c.BrickColor=Color
  527. c.Name="Head"
  528. c.TopSurface=0
  529. c.BottomSurface=0
  530. c.formFactor="Plate"
  531. c.Size=Vector3.new(1,.4,1)
  532. ms=Instance.new("CylinderMesh")
  533. ms.Scale=Vector3.new(.8,.8,.8)
  534. if CRIT==true then
  535. ms.Scale=Vector3.new(1,1.25,1)
  536. end
  537. ms.Parent=c
  538. c.Reflectance=0
  539. Instance.new("BodyGyro").Parent=c
  540. c.Parent=m
  541. if Char:findFirstChild("Head")~=nil then
  542. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  543. elseif Char.Parent:findFirstChild("Head")~=nil then
  544. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  545. end
  546. f=Instance.new("BodyPosition")
  547. f.P=2000
  548. f.D=100
  549. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  550. f.position=c.Position+Vector3.new(0,3,0)
  551. f.Parent=c
  552. game:GetService("Debris"):AddItem(m,.5+du)
  553. c.CanCollide=false
  554. m.Parent=workspace
  555. c.CanCollide=false
  556. end
  557.  
  558. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 0.510347784))
  559. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0134277344, -1.08377826, 0.236021042, -0.999991059, 1.64970497e-005, -3.57626704e-005, -1.64969497e-005, -0.999997199, -5.89981786e-010, -3.53156356e-005, -1.55431202e-015, 0.999991059))
  560. mesh("BlockMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  561. Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Barrel",Vector3.new(0.400000036, 0.600000024, 0.400000006))
  562. Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0165214539, -0.556964874, 1.65633035, -0.999990225, -1.64588746e-005, -3.51069939e-005, 3.59414771e-005, 5.92924765e-010, -0.99999088, 1.65416641e-005, -0.999996066, -2.07900868e-007))
  563. mesh("BlockMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  564. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  565. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.77380371e-005, -0.551608682, 0.933853149, 0.999982119, 4.92241179e-006, 4.47023922e-007, -4.92275558e-006, 0.999994397, 5.18727006e-011, -1.34108632e-006, -6.88231694e-011, 0.999982119))
  566. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.850579739))
  567. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.263679713, 0.680464089, 0.200000003))
  568. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000255584717, 1.23079586, 0.679197311, 0.999982119, 2.09204348e-010, 4.47023922e-007, -6.14797824e-010, 0.999994397, 7.37476746e-012, -1.34108632e-006, -2.21242469e-011, 0.999982119))
  569. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.850579739))
  570. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.255169868))
  571. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-005, -0.424460649, 0.127323151, 0.999991059, 2.60244997e-006, 5.95537131e-008, -2.60263118e-006, 0.999997079, 2.07900612e-007, -5.06588549e-007, -2.07909366e-007, 0.999991059))
  572. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 0.425283283, 1))
  573. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.04139137, 0.340232015, 0.255173892))
  574. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.466564178, -0.424417496, -0.00016784668, -2.27435266e-005, -0.999994159, 1.75410797e-011, 7.063058e-005, -1.58892144e-009, -0.999982119, 0.999982119, -2.27441906e-005, 6.97365176e-005))
  575. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  576. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.255169958))
  577. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.7220459e-005, -0.0845518112, 0.127305984, 0.999982119, 1.79009203e-006, 4.76829882e-007, -1.79047493e-006, 0.999994397, 7.47768514e-012, -1.37088864e-006, -2.3080815e-011, 0.999982119))
  578. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  579. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.425283313, 0.200000003))
  580. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, -0.254490614, -0.0425262451, 0.999982119, 4.47815211e-007, 5.0665767e-007, -4.48213513e-007, 0.999994397, 9.08723097e-012, -1.40071279e-006, -2.40636955e-011, 0.999982119))
  581. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 1, 0.425283164))
  582. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 1.44598627, 0.595405817))
  583. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000183105469, 1.35827327, 0.551862717, 0.999982119, 2.09204348e-010, 4.47023922e-007, -6.14797824e-010, 0.999994397, 7.37476746e-012, -1.34108632e-006, -2.21242469e-011, 0.999982119))
  584. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.61610174, 0.255173981, 0.255173892))
  585. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.254119873, -0.721702576, -0.000198364258, -2.27435994e-005, -0.999994636, -3.5085157e-011, 7.10776076e-005, -1.54646851e-009, -0.999982119, 0.999982119, -2.27442943e-005, 7.01835525e-005))
  586. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  587. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.263679713, 0.200000003, 0.425289869))
  588. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00115585327, -0.551612258, 0.636695862, 0.999982119, 4.92261825e-006, 8.94047844e-007, -4.92297022e-006, 0.999994636, 6.63678834e-011, -1.78811024e-006, -8.55193139e-011, 0.999982119))
  589. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  590. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.680463791, 0.200000003, 0.200000003))
  591. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.976444304, -0.294725418, -0.00431060791, -2.27435994e-005, -0.999994636, -3.5085157e-011, 7.10776076e-005, -1.54646851e-009, -0.999982119, 0.999982119, -2.27442943e-005, 7.01835525e-005))
  592. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.850579798))
  593. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.42528984, 0.200000003, 0.255173892))
  594. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.27387559, -0.636722565, -0.00016784668, -2.49764744e-005, -0.999994636, -3.70836695e-011, 7.10776076e-005, -1.7011863e-009, -0.999982119, 0.999982119, -2.49771983e-005, 7.01835525e-005))
  595. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 1))
  596. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 0.200000003, 0.255173892))
  597. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.10395718, -0.764104843, -0.000137329102, -2.49764744e-005, -0.999994636, -3.70836695e-011, 7.10776076e-005, -1.7011863e-009, -0.999982119, 0.999982119, -2.49771983e-005, 7.01835525e-005))
  598. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  599. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.425289929, 0.340231895))
  600. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0043182373, 1.2733295, 0.0848426819, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  601. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 1))
  602. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.340231895))
  603. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00423049927, 1.01876116, 0.0848426819, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  604. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  605. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.255173951, 0.200000003, 0.255173892))
  606. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.0424911976, 0.97628212, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  607. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  608. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  609. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, 0.084962368, 1.18850517, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  610. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.212644935, 0.212645039, 0.425289869))
  611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.5,"Cyan","Part",Vector3.new(0.255173951, 0.200000003, 0.200000003))
  612. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, 0.084962368, 1.18850517, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  613. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.850579798))
  614. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.680464029, 0.200000003))
  615. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00429153442, -0.976130962, 0.297080994, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  616. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  617. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.595405877))
  618. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.10351563e-005, 0.594237328, 0.551851273, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  619. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 1))
  620. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  621. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.169742584, 0.0849318504, 1.06118011, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  622. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  623. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.510348022, 0.200000003))
  624. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00430297852, 1.23086357, -0.127353668, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  625. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.850579739))
  627. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.34057617e-005, 2.1647141, 0.424444199, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  628. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  629. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.255173951, 0.595406055, 0.200000003))
  630. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.57763672e-005, -0.339458823, 1.0612278, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  631. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.425289869))
  632. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.425289899, 0.200000003, 0.200000003))
  633. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.91821289e-005, 0.084962368, 1.3158741, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  634. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.425290078, 0.425289869))
  635. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.510347903))
  636. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0848655701, 0.551791668, -5.91278076e-005, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  637. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  638. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  639. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.169647217, 0.0849175453, 1.06118774, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  640. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 1))
  641. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.425290108, 0.200000003))
  642. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.254673719, -0.212312698, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  643. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  644. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Part",Vector3.new(0.200000003, 0.200000003, 0.425289869))
  645. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00430297852, 1.52808881, 0.0424671173, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  646. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 1))
  647. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  648. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.21206665, -0.933796644, 0.679149628, -0.999982119, -5.58144457e-005, -8.9405512e-007, 5.58141619e-005, -0.999994636, 3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  649. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.850579798))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  651. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.127262115, 0.933843374, 0.679164886, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  652. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.850579739))
  653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.255173951, 0.200000003, 0.340231895))
  654. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, -2.1647017, -2.0980835e-005, -0.999982119, -5.58144457e-005, -8.9405512e-007, 5.58141619e-005, -0.999994636, 3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  655. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.850580096, 1))
  656. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.510347903))
  657. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0848960876, 0.551814079, -1.90734863e-005, 0.999982119, 5.58144457e-005, 8.9405512e-007, -5.58141619e-005, 0.999994636, -3.51525475e-011, -1.78811752e-006, -2.94989588e-011, 0.999982119))
  658. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  659. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(0.200000003, 0.200000003, 0.255173892))
  660. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.44389164, -0.764112473, -0.000137329102, -2.53405306e-005, -0.999997318, -2.07920962e-007, 7.14656417e-005, 2.06129954e-007, -0.999991059, 0.999991059, -2.53409107e-005, 7.10185996e-005))
  661. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 1))
  662. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  663. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551600099, -0.891397476, 0.0849647522, -1.96261317e-005, -0.999994636, -7.89959209e-011, 7.10781751e-005, -1.28376709e-009, -0.999982119, 0.999982119, -1.96267902e-005, 7.018412e-005))
  664. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  665. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173862, 0.255174011, 0.595405817))
  666. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000217437744, -1.61367238, -0.551843643, -0.999982119, -3.15852139e-006, -8.79772415e-007, -3.15889542e-006, 0.999994636, -2.42164191e-007, 1.77383481e-006, -2.42149667e-007, -0.999982119))
  667. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  668. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.34022662, 0.200000003))
  669. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 0.0848674774, 0.509426713, 0.999991059, 2.60264824e-006, 5.06588549e-007, -9.53623385e-007, 2.06911025e-007, 0.999991059, 2.60283809e-006, -0.999997318, 2.06918429e-007))
  670. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425283134, 1, 0.425283164))
  671. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  672. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.551610351, -0.891412735, 0.0848731995, 2.05404231e-005, 0.999994636, 3.72684752e-007, 7.10960012e-005, 3.71262161e-007, -0.999982119, -0.999982119, 2.05411197e-005, -7.02019315e-005))
  673. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  674. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  675. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551705599, 0.933855057, 0.0848388672, -2.27403962e-005, -0.999994636, -5.9601156e-008, -7.10774912e-005, -5.80205715e-008, 0.999982119, -0.999982119, 2.27410965e-005, -7.0183436e-005))
  676. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.850580096, 0.425289869))
  677. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  678. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.551692009, 0.933879852, 0.0849609375, 2.27179899e-005, 0.999994636, -5.9531132e-008, -7.10859167e-005, 6.11118125e-008, 0.999982119, 0.999982119, -2.27186792e-005, 7.0191847e-005))
  679. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.850580096, 0.425289869))
  680. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.255168587, 0.200000003))
  681. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000110626221, 0.127298355, 0.169516325, 0.999982119, 2.23781717e-006, 9.2386108e-007, -1.81791984e-006, -1.01918163e-009, 0.999982119, 2.2382028e-006, -0.999994636, -1.0023522e-009))
  682. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  683. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  684. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00854873657, -1.57516098, 0.185529709, -0.999982119, -7.21350352e-006, -8.5031279e-006, -3.48015419e-006, 0.937103271, -0.349032491, 1.13240894e-005, -0.349036932, -0.937091589))
  685. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 0.425290078, 0.425289869))
  686. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.425284624, 0.200000003))
  687. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000102996826, -0.0424919128, 0.0849627256, 0.999991059, 5.58147876e-005, 8.0466998e-007, 1.25170482e-006, -2.72474687e-009, -0.999991059, -5.58146457e-005, 0.999997318, -2.77701706e-009))
  688. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  689. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Wedge",Vector3.new(0.200000003, 0.255174011, 0.255173892))
  690. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00849533081, -1.76611137, 0.0303249359, -0.999982119, -7.41118401e-006, -9.01437488e-006, -3.18791808e-006, 0.928048849, -0.372439235, 1.19559481e-005, -0.372443885, -0.928037345))
  691. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 1))
  692. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.425284624, 0.200000003))
  693. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000106811523, 0.0424900055, 0.0849499702, -0.999982119, -4.47962549e-007, -6.40648068e-007, -1.53471046e-006, -1.13678156e-009, 0.999982119, -4.48370002e-007, 0.999994636, 1.12173104e-009))
  694. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.850579858, 1, 0.425289869))
  695. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.255168587, 0.200000003))
  696. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000118255615, -0.12729454, 0.169492006, -0.999982119, -5.62619716e-005, -9.83487553e-007, 1.87754631e-006, -2.7208622e-009, -0.999982119, 5.62616806e-005, -0.999994636, 2.79091061e-009))
  697. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  698. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  699. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0847396851, 0.933885574, 0.0847232342, 0.999982119, 5.58591455e-005, 8.98660801e-007, -1.7927232e-006, -2.00105266e-008, 0.999982119, 5.58588581e-005, -0.999994636, -1.99453289e-008))
  700. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.425289869))
  701. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.2551741, 0.200000003))
  702. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0849990845, 0.339661598, -0.212226868, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  703. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  704. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  705. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0849323273, 0.806465149, 0.169761658, 2.44998719e-005, 0.999994636, 1.26530392e-006, -7.12289184e-005, -1.2636109e-006, 0.999982119, 0.999982119, -2.45006886e-005, 7.03348342e-005))
  706. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 0.425289869))
  707. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173951, 0.425290108, 0.255173951))
  708. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 1.86757088, -0.127286911, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  709. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  710. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.200000003, 0.2551741, 0.200000003))
  711. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0848350525, 0.339640617, -0.212226868, -0.999982119, -5.5915436e-005, -7.77094101e-007, -5.59151522e-005, 0.999994636, 1.02350157e-006, 1.67109829e-006, 1.02357262e-006, -0.999982119))
  712. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 1, 0.425289869))
  713. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.255173951, 0.340232044, 0.510347784))
  714. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.05175781e-005, -0.8064816, 1.14440918e-005, 0.999982119, 5.58740467e-005, 1.35518712e-006, 5.58737629e-005, -0.999994636, -1.12400812e-006, 2.2491804e-006, 1.12411249e-006, -0.999982119))
  715. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  716. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  717. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0848121643, 0.933847427, 0.0847399235, 0.999982119, 5.58591455e-005, 8.98660801e-007, -1.7927232e-006, -2.00105266e-008, 0.999982119, 5.58588581e-005, -0.999994636, -1.99453289e-008))
  718. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.850580096, 0.425289869))
  719. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Wedge",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  720. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0849186182, 0.806528091, 0.169620514, -2.46491363e-005, -0.999994636, -5.97645396e-007, -7.32047774e-005, -5.95885183e-007, 0.999982119, -0.999982119, 2.46499039e-005, -7.23107005e-005))
  721. mesh("SpecialMesh",Wedge,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.425289869, 0.425290078, 0.425289869))
  722.  
  723. function effect(Color,Ref,LP,P1,returnn)
  724. if LP==nil or P1==nil then return end
  725. local effectsmsh=Instance.new("CylinderMesh")
  726. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  727. effectsmsh.Name="Mesh"
  728. local effectsg=Instance.new("Part")
  729. NoOutline(effectsg)
  730. effectsg.formFactor=3
  731. effectsg.CanCollide=false
  732. effectsg.Name="Eff"
  733. effectsg.Locked=true
  734. effectsg.Anchored=true
  735. effectsg.Size=Vector3.new(0.5,1,0.5)
  736. effectsg.Parent=workspace
  737. effectsmsh.Parent=effectsg
  738. effectsg.BrickColor=BrickColor.new(Color)
  739. effectsg.Reflectance=Ref
  740. local point1=P1
  741. local mg=(LP.p - point1.p).magnitude
  742. effectsg.Size=Vector3.new(0.5,mg,0.5)
  743. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  744. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  745. game:GetService("Debris"):AddItem(effectsg,2)
  746. if returnn then return effectsg end
  747. if not returnn then
  748. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  749. end
  750. end
  751.  
  752. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  753. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  754. prt.Anchored=true
  755. prt.CFrame=cframe
  756. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  757. game:GetService("Debris"):AddItem(prt,2)
  758. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  759. end
  760.  
  761. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  762. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  763. prt.Anchored=true
  764. prt.CFrame=cframe
  765. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  766. game:GetService("Debris"):AddItem(prt,2)
  767. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  768. end
  769.  
  770. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  771. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  772. prt.Anchored=true
  773. prt.CFrame=cframe
  774. local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  775. game:GetService("Debris"):AddItem(prt,2)
  776. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  777. end
  778.  
  779.  
  780. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  781. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  782. prt.Anchored=true
  783. prt.CFrame=cframe
  784. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  785. game:GetService("Debris"):AddItem(prt,2)
  786. coroutine.resume(coroutine.create(function(Part,Mesh)
  787. for i=0,1,delay do
  788. swait()
  789. Part.CFrame=Part.CFrame
  790. Part.Transparency=i
  791. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  792. end
  793. Part.Parent=nil
  794. end),prt,msh)
  795. end
  796.  
  797. function LaserBarrage(Prt,Parent)
  798. attack=true
  799. --so("BeamLockon",Prt,1,1)
  800. local efprt=part(3,Parent,"SmoothPlastic",0,0.5,BrickColor.new("Cyan"),"Effect",vt(0.2,0.2,0.2))
  801. efprt.Anchored=true
  802. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  803. spread=vt(0,0,0)*(Prt.Position-Mouse.Hit.p).magnitude/100
  804. --spread=vt(0,0,0)
  805. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  806. game:GetService("Debris"):AddItem(Part,6)
  807. local TheHit=Mouse.Hit.p
  808. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  809. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  810. so("Elec",Prt,0.2,1)
  811. local tefprt=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  812. tefprt.CFrame=cf(pos)
  813. MagicCircle(BrickColor.new("Cyan"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  814. so("Elec",tefprt,0.3,1)
  815. game:GetService("Debris"):AddItem(tefprt,3)
  816. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  817. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  818. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  819. hit.Parent.Humanoid:TakeDamage(15)
  820. end
  821. end
  822. local mag=(Prt.Position-pos).magnitude
  823. MagicCylinder(BrickColor.new("Cyan"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  824. Part.Parent=nil
  825. end),efprt,efmsh,spread)
  826. end
  827.  
  828. function Laser(Part,Dmg)
  829. sp = Part.Position
  830. dirr = Part.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0)
  831. local hit,pos = rayCast(sp,dirr.lookVector,100,Character)
  832. local las=Instance.new("Part",Character)
  833. las.Material = "SmoothPlastic"
  834. las.Anchored=true
  835. las.Locked=true
  836. las.CanCollide=false
  837. las.TopSurface=0
  838. las.BottomSurface=0
  839. las.FormFactor = "Custom"
  840. las.BrickColor=BrickColor.new("Cyan")
  841. las.Size=Vector3.new(1,1,1)
  842. las.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  843. local msh=Instance.new("SpecialMesh",las)
  844. mag = (Part.Position-pos).magnitude
  845. msh.Scale=Vector3.new(0.1,mag,0.1)
  846. coroutine.resume(coroutine.create(function(Part,Mesh)
  847. for i = 0,1,0.1 do
  848. wait()
  849. Part.Transparency = Part.Transparency + 0.1
  850. Mesh.Scale = Mesh.Scale + Vector3.new(0.15,0.7,0.15)
  851. end
  852. Part.Parent = nil
  853. end),las,msh)
  854. if pos ~= nil then
  855. local las2=Instance.new("Part",Character)
  856. las2.Material = "SmoothPlastic"
  857. las2.Anchored=true
  858. las2.Locked=true
  859. las2.CanCollide=false
  860. las2.TopSurface=0
  861. las2.BottomSurface=0
  862. las2.FormFactor = "Custom"
  863. las2.BrickColor=BrickColor.new("Cyan")
  864. las2.Size=Vector3.new(1,1,1)
  865. --las2.CFrame=CFrame.new((Part.Position+pos)/2,pos) *CFrame.Angles(math.rad(90),0,0)
  866. las2.CFrame=CFrame.new(pos) *CFrame.Angles(math.rad(90),0,0)
  867. local msh=Instance.new("SpecialMesh",las2)
  868. msh.MeshType = "Sphere"
  869. mag = (Part.Position-pos).magnitude
  870. msh.Scale=Vector3.new(0.1,0.1,0.1)
  871. coroutine.resume(coroutine.create(function(Part,Mesh)
  872. --wait(10)
  873. for i = 0,1,0.1 do
  874. wait()
  875. Part.Transparency = Part.Transparency + 0.1
  876. Mesh.Scale = Mesh.Scale + Vector3.new(0.5,0,0.5)
  877. end
  878. Part.Parent = nil
  879. end),las2,msh)
  880. end
  881. if hit ~= nil and pos ~= nil then
  882. if hit.Parent.className == "Hat" then
  883. hit:BreakJoints()
  884. hit.Velocity = Vector3.new(math.random(-5,5),20,math.random(-5,5))
  885. end
  886. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  887. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  888. hit.Parent.Humanoid:TakeDamage(Dmg)
  889. end
  890. end
  891. --[[if hit.className == "Part" and hit.Parent:findFirstChild("Humanoid") == nil then
  892. end ]]
  893. end
  894. end
  895.  
  896. ShootSounds = {233370753,233370772}
  897.  
  898. function PlaySound(id, pitch, parent, volume)
  899. if volume == nil then volume=tonumber(1) end
  900. local Sound = Instance.new("Sound")
  901. Sound.Name = "Epicosound"
  902. Sound.SoundId = "rbxassetid://"..id
  903. Sound.Volume = volume
  904. Sound.Pitch = pitch
  905. Sound.Looped = false
  906. Sound.Parent = parent
  907. wait()
  908. Sound:Play()
  909. game:service'Debris':AddItem(Sound, 8)
  910. end
  911.  
  912. ShootSounds = {233370753,233370772}
  913.  
  914. ShootSound = function(part)
  915. local shot=math.random(1, #ShootSounds)
  916. PlaySound(ShootSounds[shot], 1, part)
  917. end
  918.  
  919. function Shoot1()
  920. attack = true
  921. for i = 0,1,0.2 do
  922. swait()
  923. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
  924. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  925. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.3)
  926. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.3)
  927. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  928. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
  929. end
  930. ShootSound(Barrel)
  931. LaserBarrage(Barrel,m)
  932. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  933. for i = 0,1,0.1 do
  934. swait()
  935. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-30)),.2)
  936. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(30)),.2)
  937. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-20)),.3)
  938. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(50), math.rad(130)),.3)
  939. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  940. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(5)),.2)
  941. end
  942. attack = false
  943. end
  944.  
  945. function Shoot2()
  946. attack = true
  947. for i = 0,1,0.07 do
  948. swait()
  949. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  950. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  951. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)),.2)
  952. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  953. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*angles(math.rad(0),math.rad(20),math.rad(0)),.2)
  954. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  955. end
  956. ShootSound(Barrel)
  957. LaserBarrage(Barrel,m)
  958. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  959. for i = 0,1,0.1 do
  960. swait()
  961. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  962. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-80)),.2)
  963. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 1, 0) * angles(math.rad(0), math.rad(50), math.rad(140)),.2)
  964. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  965. RH.C0=clerp(RH.C0,cf(.6,-1,.5)*angles(math.rad(0),math.rad(20),math.rad(0)),.2)
  966. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  967. end
  968. attack = false
  969. end
  970.  
  971. function Shoot3()
  972. attack = true
  973. for i = 0,1,0.07 do
  974. swait()
  975. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(30),math.rad(0),-5*i),.2)
  976. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.2)
  977. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  978. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-80)),.2)
  979. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(60)),.2)
  980. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(70)),.2)
  981. end
  982. for i = 0,1,0.1 do
  983. swait()
  984. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  985. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  986. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  987. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  988. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(30)),.2)
  989. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(30)),.2)
  990. end
  991. ShootSound(Barrel)
  992. LaserBarrage(Barrel,m)
  993. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  994. for i = 0,1,0.1 do
  995. swait()
  996. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  997. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.2)
  998. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)),.2)
  999. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)),.2)
  1000. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20)),.2)
  1001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1002. end
  1003. attack = false
  1004. end
  1005.  
  1006. function SpinShot()
  1007. attack = true
  1008. for i=0,1,0.9 do
  1009. swait()
  1010. for i = 0,1,0.1 do
  1011. swait()
  1012. ShootSound(Barrel)
  1013. Laser(Barrel,20)
  1014. MagicCircle(BrickColor.new("Cyan"),Barrel.CFrame,.5,.5,.5,.5,.5,.5,0.06)
  1015. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,2)* angles(math.rad(20),math.rad(0),-5*i),.3)
  1016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.3)
  1017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.3)
  1018. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)),.3)
  1019. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(60)),.3)
  1020. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(70)),.3)
  1021. end
  1022. end
  1023. attack = false
  1024. end
  1025.  
  1026. mouse.Button1Down:connect(function()
  1027. if attack==false then
  1028. if attacktype == 1 then
  1029. attack = true
  1030. attacktype = 2
  1031. Shoot1()
  1032. elseif attacktype == 2 then
  1033. attack = true
  1034. attacktype = 3
  1035. Shoot2()
  1036. elseif attacktype == 3 then
  1037. attack = true
  1038. attacktype = 1
  1039. Shoot3()
  1040. end
  1041. end
  1042. end)
  1043.  
  1044. mouse.KeyDown:connect(function(k)
  1045. k=k:lower()
  1046. if k=='q' then
  1047. if attack==false then
  1048. SpinShot()
  1049. end
  1050. end
  1051. end)
  1052.  
  1053.  
  1054. local sine = 0
  1055. local change = 1
  1056. local val = 0
  1057.  
  1058. while true do
  1059. swait()
  1060. sine = sine + change
  1061. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1062. local velderp=RootPart.Velocity.y
  1063. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1064. if equipped==true or equipped==false then
  1065. if attack==false then
  1066. idle=idle+1
  1067. else
  1068. idle=0
  1069. end
  1070. if idle>=500 then
  1071. if attack==false then
  1072. --Sheath()
  1073. end
  1074. end
  1075. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1076. Anim="Jump"
  1077. if attack==false then
  1078. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1079. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1080. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)),.2)
  1081. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)),.2)
  1082. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.2)
  1083. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.2)
  1084. end
  1085. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1086. Anim="Fall"
  1087. if attack==false then
  1088. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1089. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  1090. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)),.2)
  1091. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)),.2)
  1092. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20)),.2)
  1093. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.2)
  1094. end
  1095. elseif torvel<1 and hitfloor~=nil then
  1096. Anim="Idle"
  1097. if attack==false then
  1098. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
  1099. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.2)
  1100. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.2)
  1101. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.2)
  1102. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
  1103. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.2)
  1104. end
  1105. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1106. Anim="Walk"
  1107. if attack==false then
  1108. change=3
  1109. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-30)),.2)
  1110. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(-5),math.rad(30)),.2)
  1111. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)),.2)
  1112. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.5, -1) * angles(math.rad(0), math.rad(80), math.rad(100)),.2)
  1113. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  1114. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(10)),.2)
  1115. end
  1116. elseif torvel>=22 and hitfloor~=nil then
  1117. Anim="Run"
  1118. if attack==false then
  1119. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1120. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1121. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1122. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1123. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.2)
  1124. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  1125. end
  1126. end
  1127. end
  1128. if #Effects>0 then
  1129. --table.insert(Effects,{prt,"Block1",delay})
  1130. for e=1,#Effects do
  1131. if Effects[e]~=nil then
  1132. --for j=1,#Effects[e] do
  1133. local Thing=Effects[e]
  1134. if Thing~=nil then
  1135. local Part=Thing[1]
  1136. local Mode=Thing[2]
  1137. local Delay=Thing[3]
  1138. local IncX=Thing[4]
  1139. local IncY=Thing[5]
  1140. local IncZ=Thing[6]
  1141. if Thing[2]=="DecreaseStat" then
  1142. Thing[5]=Thing[5]-1
  1143. if Thing[5]<=0 then
  1144. if Thing[1]:findFirstChild("Stats")~=nil then
  1145. Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  1146. end
  1147. table.remove(Effects,e)
  1148. end
  1149. end
  1150. if Thing[2]=="Shoot" then
  1151. local Look=Thing[1]
  1152. local hit,pos = rayCast(Thing[4],Look,20,m)
  1153. local mag=(Thing[4]-pos).magnitude
  1154. MagicHead(BrickColor.new("Cyan"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1)
  1155. Thing[4]=Thing[4]+(Look*20)
  1156. Thing[3]=Thing[3]-1
  1157. if hit~=nil then
  1158. Thing[3]=0
  1159. if Thing[8]==1 then
  1160. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,10,20,math.random(1,5),nil,nil,true)
  1161. elseif Thing[8]==2 then
  1162. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,10,20,math.random(1,5),nil,nil,true)
  1163. end
  1164. ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Cyan"),"Reference",vt())
  1165. ref.Anchored=true
  1166. ref.CFrame=cf(pos)
  1167. MagicCircle(BrickColor.new("Cyan"),cf(pos),5,5,5,1,1,1,0.03)
  1168. game:GetService("Debris"):AddItem(ref,1)
  1169. end
  1170. if Thing[3]<=0 then
  1171. table.remove(Effects,e)
  1172. end
  1173. end
  1174. if Thing[2]=="CylinderClang" then
  1175. if Thing[3]<=1 then
  1176. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1177. Thing[7]=Thing[1].CFrame
  1178. effect("Cyan",0,Thing[8],Thing[7])
  1179. Thing[8]=Thing[7]
  1180. Thing[3]=Thing[3]+Thing[4]
  1181. else
  1182. Part.Parent=nil
  1183. table.remove(Effects,e)
  1184. end
  1185. --[[Mesh=Thing[7]
  1186. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1187. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1188. end
  1189. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then
  1190. if Thing[1].Transparency<=1 then
  1191. if Thing[2]=="Block1" then
  1192. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1193. Mesh=Thing[7]
  1194. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1195. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1196. elseif Thing[2]=="Block2" then
  1197. Thing[1].CFrame=Thing[1].CFrame
  1198. Mesh=Thing[7]
  1199. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1200. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1201. elseif Thing[2]=="Cylinder" then
  1202. Mesh=Thing[7]
  1203. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1204. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1205. elseif Thing[2]=="Blood" then
  1206. Mesh=Thing[7]
  1207. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1208. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1209. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1210. elseif Thing[2]=="Elec" then
  1211. Mesh=Thing[1].Mesh
  1212. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1213. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1214. elseif Thing[2]=="Disappear" then
  1215. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1216. end
  1217. else
  1218. Part.Parent=nil
  1219. table.remove(Effects,e)
  1220. end
  1221. end
  1222. end
  1223. --end
  1224. end
  1225. end
  1226. end
  1227. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement