Advertisement
artucox7

Genocider Noob

Sep 3rd, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.02 KB | None | 0 0
  1. ---// Genocider Noob \\---
  2. ---|| Maked By Artucox7 ||---
  3. ---\\ You're here venge //---
  4.  
  5. wait(1)
  6. local plr = game.Players.LocalPlayer
  7. local char = plr.Character
  8. local hed = char.Head
  9. local tors = char.Torso
  10. local Torso = tors
  11. local hum = char.Humanoid
  12. local mouse = plr:GetMouse()
  13. local Mouse = plr:GetMouse()
  14. local Player = plr
  15. local Character = char
  16. local Humanoid = hum
  17. local RA = char["Right Arm"]
  18. local LA = char["Left Arm"]
  19. local RL = char["Right Leg"]
  20. local LL = char["Left Leg"]
  21. local root = char.HumanoidRootPart
  22. local BC = char["Body Colors"]
  23. local rainbowmode = false
  24. local chaosmode = false
  25. modz = Instance.new("Model")
  26. modz.Name = "efx"
  27. modz.Parent = char
  28. Heartbeat = Instance.new("BindableEvent")
  29. Heartbeat.Name = "Heartbeat"
  30. Heartbeat.Parent = script
  31. LS=tors["Left Shoulder"]
  32. LH=tors["Left Hip"]
  33. RS=tors["Right Shoulder"]
  34. RH=tors["Right Hip"]
  35. Neck=tors.Neck
  36. radical = math.rad
  37. angles=CFrame.Angles
  38. random = math.random
  39. Vec3 = Vector3.new
  40. Inst = Instance.new
  41. cFrame = CFrame.new
  42. Euler = CFrame.fromEulerAnglesXYZ
  43. vt = Vector3.new
  44. bc = BrickColor.new
  45. br = BrickColor.random
  46. it = Instance.new
  47. cf = CFrame.new
  48. IT = Instance.new
  49. CF = CFrame.new
  50. VT = Vector3.new
  51. RAD = math.rad
  52. C3 = Color3.new
  53. UD2 = UDim2.new
  54. BRICKC = BrickColor.new
  55. ANGLES = CFrame.Angles
  56. EULER = CFrame.fromEulerAnglesXYZ
  57. COS = math.cos
  58. ACOS = math.acos
  59. SIN = math.sin
  60. ASIN = math.asin
  61. ABS = math.abs
  62. Mrandom = math.random
  63. Cos = math.cos
  64. Acos = math.acos
  65. FLOOR = math.floor
  66. Player_Size = 1 --Size of the player.
  67. Animation_Speed = 1
  68. Frame_Speed = 1 / 30 -- (1 / 30) OR (1 / 60)
  69. CF = CFrame.new
  70. VT = Vector3.new
  71. angles = CFrame.Angles
  72. attack = false
  73. Euler = CFrame.fromEulerAnglesXYZ
  74. Rad = math.rad
  75. IT = Instance.new
  76. BrickC = BrickColor.new
  77. Cos = math.cos
  78. Acos = math.acos
  79. Sin = math.sin
  80. Asin = math.asin
  81. Abs = math.abs
  82. Mrandom = math.random
  83. Floor = math.floor
  84. rd2 = math.random
  85. local CHANGE = 2 / Animation_Speed
  86. local cn = CFrame.new
  87. local mr = math.rad
  88. local angles = CFrame.Angles
  89. local ud = UDim2.new
  90. local c3 = Color3.new
  91. local Speed = 20
  92. local r = 255
  93. local g = 0
  94. local b = 0
  95. local Effects2 = {}
  96. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  97. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  98. local RSC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  99. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  100. local idle=0
  101. local Anim="Idle"
  102. local Effects={}
  103. local gun=false
  104. local shoot=false
  105. local sine = 0
  106. local change = 1
  107. local ANIMATE = char.Animate
  108. local ROBLOXIDLEANIMATION = IT("Animation")
  109. local RootPart = char.HumanoidRootPart
  110. local RootJoint = RootPart.RootJoint
  111. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  112. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  113. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  114. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  115. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  116. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  117. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  118. necko=CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  119. necko2=CF(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  120. LHC0=CF(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  121. LHC1=CF(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  122. RHC0=CF(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  123. RHC1=CF(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  124. RootPart=char.HumanoidRootPart
  125. RootJoint=RootPart.RootJoint
  126. RootCF=Euler(-1.57,0,3.14)
  127. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  128. RSH, LSH = nil, nil
  129. RW = Instance.new("Weld")
  130. LW = Instance.new("Weld")
  131. RH = tors["Right Hip"]
  132. LH = tors["Left Hip"]
  133. RSH = tors["Right Shoulder"]
  134. LSH = tors["Left Shoulder"]
  135. RSH.Parent = nil
  136. LSH.Parent = nil
  137. RW.Name = "RW"
  138. RW.Part0 = tors
  139. RW.C0 = CF(1.5, 0.5, 0)
  140. RW.C1 = CF(0, 0.5, 0)
  141. RW.Part1 = RA
  142. RW.Parent = tors
  143. LW.Name = "LW"
  144. LW.Part0 = tors
  145. LW.C0 = CF(-1.5, 0.5, 0)
  146. LW.C1 = CF(0, 0.5, 0)
  147. LW.Part1 = LA
  148. LW.Parent = tors
  149. Effects = {}
  150.  
  151.  
  152. --Theme
  153.  
  154. local them = Instance.new("Sound", tors)
  155. them.SoundId = "rbxassetid://3351731797"
  156. them.Volume = 7
  157. them.Looped = true
  158. them.TimePosition = 0
  159. them:Play()
  160.  
  161. --Functions
  162.  
  163. function CreateSound(Id,Vol,prnt)
  164. local sund = Instance.new("Sound", prnt)
  165. sund.SoundId = "rbxassetid://".. Id
  166. sund.Volume = Vol
  167. sund:Play()
  168. end
  169.  
  170.  
  171. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  172. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  173. end
  174.  
  175. function chatfunc(Text,chatcolor,font)
  176. local chat = coroutine.wrap(function()
  177. if char:FindFirstChild("TalkingBillBoard")~= nil then
  178. char:FindFirstChild("TalkingBillBoard"):destroy()
  179. end
  180. local Bill = Instance.new("BillboardGui",hed)
  181. Bill.Size = UDim2.new(0,100,0,40)
  182. Bill.StudsOffset = Vector3.new(0,3,0)
  183. Bill.Name = "TalkingBillBoard"
  184. local Hehe = Instance.new("TextLabel",Bill)
  185. Hehe.BackgroundTransparency = 1
  186. Hehe.BorderSizePixel = 0
  187. Hehe.Text = Text
  188. Hehe.Font = font
  189. Hehe.TextSize = 40
  190. Hehe.TextStrokeTransparency = 0
  191. Hehe.TextColor3 = Color3.new(chatcolor)
  192. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  193. Hehe.Size = UDim2.new(1,0,0.5,0)
  194. coroutine.resume(coroutine.create(function()
  195. while Hehe ~= nil do
  196. wait(0.01)
  197. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  198. Hehe.Rotation = math.random(-2.5,2.5)
  199. end
  200. end))
  201. for i = 1,string.len(Text) do
  202. wait(0.01)
  203. Hehe.Text = string.sub(Text,1,i)
  204. end
  205. for i = 0, 1, .025 do
  206. wait(0.01)
  207. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  208. Hehe.TextStrokeTransparency = i
  209. Hehe.TextTransparency = i
  210. end
  211. Bill:Destroy()
  212. end)
  213. chat()
  214. end
  215.  
  216.  
  217. function QuaternionFromCFrame(cf)
  218. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  219. local trace = m00 + m11 + m22
  220. if trace > 0 then
  221. local s = math.sqrt(1 + trace)
  222. local recip = 0.5/s
  223. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  224. else
  225. local i = 0
  226. if m11 > m00 then
  227. i = 1
  228. end
  229. if m22 > (i == 0 and m00 or m11) then
  230. i = 2
  231. end
  232. if i == 0 then
  233. local s = math.sqrt(m00-m11-m22+1)
  234. local recip = 0.5/s
  235. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  236. elseif i == 1 then
  237. local s = math.sqrt(m11-m22-m00+1)
  238. local recip = 0.5/s
  239. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  240. elseif i == 2 then
  241. local s = math.sqrt(m22-m00-m11+1)
  242. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  243. end
  244. end
  245. end
  246.  
  247. function RemoveOutlines(part)
  248. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  249. end
  250.  
  251. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  252. local xs, ys, zs = x + x, y + y, z + z
  253. local wx, wy, wz = w*xs, w*ys, w*zs
  254. local xx = x*xs
  255. local xy = x*ys
  256. local xz = x*zs
  257. local yy = y*ys
  258. local yz = y*zs
  259. local zz = z*zs
  260. 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))
  261. end
  262.  
  263. function QuaternionSlerp(a, b, t)
  264. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  265. local startInterp, finishInterp;
  266. if cosTheta >= 0.0001 then
  267. if (1 - cosTheta) > 0.0001 then
  268. local theta = math.acos(cosTheta)
  269. local invSinTheta = 1/math.sin(theta)
  270. startInterp = math.sin((1-t)*theta)*invSinTheta
  271. finishInterp = math.sin(t*theta)*invSinTheta
  272. else
  273. startInterp = 1-t
  274. finishInterp = t
  275. end
  276. else
  277. if (1+cosTheta) > 0.0001 then
  278. local theta = math.acos(-cosTheta)
  279. local invSinTheta = 1/math.sin(theta)
  280. startInterp = math.sin((t-1)*theta)*invSinTheta
  281. finishInterp = math.sin(t*theta)*invSinTheta
  282. else
  283. startInterp = t-1
  284. finishInterp = t
  285. end
  286. end
  287. 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
  288. end
  289.  
  290. function Clerp(a,b,t)
  291. local qa = {QuaternionFromCFrame(a)}
  292. local qb = {QuaternionFromCFrame(b)}
  293. local ax, ay, az = a.x, a.y, a.z
  294. local bx, by, bz = b.x, b.y, b.z
  295. local _t = 1-t
  296. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  297. end
  298.  
  299. function Clerp(a,b,t)
  300. local qa = {QuaternionFromCFrame(a)}
  301. local qb = {QuaternionFromCFrame(b)}
  302. local ax, ay, az = a.x, a.y, a.z
  303. local bx, by, bz = b.x, b.y, b.z
  304. local _t = 1-t
  305. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  306. end
  307.  
  308. local Create = LoadLibrary("RbxUtility").Create
  309.  
  310. CFuncs = {
  311. ["Part"] = {
  312. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  313. local Part = Create("Part"){
  314. Parent = Parent,
  315. Reflectance = Reflectance,
  316. Transparency = Transparency,
  317. CanCollide = false,
  318. Locked = true,
  319. BrickColor = BrickColor.new(tostring(BColor)),
  320. Name = Name,
  321. Size = Size,
  322. Material = Material,
  323. }
  324. RemoveOutlines(Part)
  325. return Part
  326. end;
  327. };
  328.  
  329. ["Mesh"] = {
  330. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  331. local Msh = Create(Mesh){
  332. Parent = Part,
  333. Offset = OffSet,
  334. Scale = Scale,
  335. }
  336. if Mesh == "SpecialMesh" then
  337. Msh.MeshType = MeshType
  338. Msh.MeshId = MeshId
  339. end
  340. return Msh
  341. end;
  342. };
  343.  
  344. ["Mesh"] = {
  345. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  346. local Msh = Create(Mesh){
  347. Parent = Part,
  348. Offset = OffSet,
  349. Scale = Scale,
  350. }
  351. if Mesh == "SpecialMesh" then
  352. Msh.MeshType = MeshType
  353. Msh.MeshId = MeshId
  354. end
  355. return Msh
  356. end;
  357. };
  358.  
  359. ["Weld"] = {
  360. Create = function(Parent, Part0, Part1, C0, C1)
  361. local Weld = Create("Weld"){
  362. Parent = Parent,
  363. Part0 = Part0,
  364. Part1 = Part1,
  365. C0 = C0,
  366. C1 = C1,
  367. }
  368. return Weld
  369. end;
  370. };
  371.  
  372. ["Sound"] = {
  373. Create = function(id, par, vol, pit)
  374. coroutine.resume(coroutine.create(function()
  375. local S = Create("Sound"){
  376. Volume = vol,
  377. Name = "EffectSoundo",
  378. Pitch = pit or 1,
  379. SoundId = id,
  380. Parent = par or workspace,
  381. }
  382. wait()
  383. S:play()
  384. game:GetService("Debris"):AddItem(S, 10)
  385. end))
  386. end;
  387. };
  388.  
  389. ["LongSound"] = {
  390. Create = function(id, par, vol, pit)
  391. coroutine.resume(coroutine.create(function()
  392. local S = Create("Sound"){
  393. Volume = vol,
  394. Pitch = pit or 1,
  395. SoundId = id,
  396. Parent = par or workspace,
  397. }
  398. wait()
  399. S:play()
  400. game:GetService("Debris"):AddItem(S, 30)
  401. end))
  402. end;
  403. };
  404.  
  405. ["ParticleEmitter"] = {
  406. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  407. local fp = Create("ParticleEmitter"){
  408. Parent = Parent,
  409. Color = ColorSequence.new(Color1, Color2),
  410. LightEmission = LightEmission,
  411. Size = Size,
  412. Texture = Texture,
  413. Transparency = Transparency,
  414. ZOffset = ZOffset,
  415. Acceleration = Accel,
  416. Drag = Drag,
  417. LockedToPart = LockedToPart,
  418. VelocityInheritance = VelocityInheritance,
  419. EmissionDirection = EmissionDirection,
  420. Enabled = Enabled,
  421. Lifetime = LifeTime,
  422. Rate = Rate,
  423. Rotation = Rotation,
  424. RotSpeed = RotSpeed,
  425. Speed = Speed,
  426. VelocitySpread = VelocitySpread,
  427. }
  428. return fp
  429. end;
  430. };
  431.  
  432. CreateTemplate = {
  433.  
  434. };
  435. }
  436.  
  437. function sphere(bonuspeed,type,pos,scale,value,color)
  438. local type = type
  439. local rng = Instance.new("Part", workspace)
  440. rng.Anchored = true
  441. rng.BrickColor = color
  442. rng.CanCollide = false
  443. rng.FormFactor = 3
  444. rng.Name = "Ring"
  445. rng.Material = "Neon"
  446. rng.Size = Vector3.new(1, 1, 1)
  447. rng.Transparency = 0
  448. rng.TopSurface = 0
  449. rng.BottomSurface = 0
  450. rng.CFrame = pos
  451. local rngm = Instance.new("SpecialMesh", rng)
  452. rngm.MeshType = "Sphere"
  453. rngm.Scale = scale
  454. if rainbowmode == true then
  455. rng.Color = Color3.new(r/255,g/255,b/255)
  456. end
  457. local scaler2 = 1
  458. if type == "Add" then
  459. scaler2 = 1*value
  460. elseif type == "Divide" then
  461. scaler2 = 1/value
  462. end
  463. coroutine.resume(coroutine.create(function()
  464. for i = 0,10/bonuspeed,0.1 do
  465. wait(0.01)
  466. if rainbowmode == true then
  467. rng.Color = Color3.new(r/255,g/255,b/255)
  468. end
  469. if type == "Add" then
  470. scaler2 = scaler2 - 0.01*value/bonuspeed
  471. elseif type == "Divide" then
  472. scaler2 = scaler2 - 0.01/value*bonuspeed
  473. end
  474. if chaosmode == true then
  475. rng.BrickColor = BrickColor.random()
  476. end
  477. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  478. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  479. end
  480. rng:Destroy()
  481. end))
  482. end
  483.  
  484.  
  485.  
  486. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  487. local type = type
  488. local rng = Instance.new("Part", workspace)
  489. rng.Anchored = true
  490. rng.BrickColor = color
  491. rng.CanCollide = false
  492. rng.FormFactor = 3
  493. rng.Name = "Ring"
  494. rng.Material = "Neon"
  495. rng.Size = Vector3.new(1, 1, 1)
  496. rng.Transparency = 0
  497. rng.TopSurface = 0
  498. rng.BottomSurface = 0
  499. rng.CFrame = pos
  500. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  501. local rngm = Instance.new("SpecialMesh", rng)
  502. rngm.MeshType = "Sphere"
  503. rngm.Scale = vt(x1,y1,z1)
  504. if rainbowmode == true then
  505. rng.Color = Color3.new(r/255,g/255,b/255)
  506. end
  507. local scaler2 = 1
  508. local speeder = FastSpeed
  509. if type == "Add" then
  510. scaler2 = 1*value
  511. elseif type == "Divide" then
  512. scaler2 = 1/value
  513. end
  514. coroutine.resume(coroutine.create(function()
  515. for i = 0,10/bonuspeed,0.1 do
  516. wait(0.01)
  517. if rainbowmode == true then
  518. rng.Color = Color3.new(r/255,g/255,b/255)
  519. end
  520. if type == "Add" then
  521. scaler2 = scaler2 - 0.01*value/bonuspeed
  522. elseif type == "Divide" then
  523. scaler2 = scaler2 - 0.01/value*bonuspeed
  524. end
  525. if chaosmode == true then
  526. rng.BrickColor = BrickColor.random()
  527. end
  528. speeder = speeder - 0.01*FastSpeed*bonuspeed
  529. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  530. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  531. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  532. end
  533. rng:Destroy()
  534. end))
  535. end
  536.  
  537. function DestroyerBall(pos,times,beamsize,color)
  538. attack = true
  539. local tagged = nil
  540.  
  541. local p = Instance.new("Part",root)
  542. p.Anchored = true
  543. p.CanCollide = false
  544. p.BrickColor = color
  545. p.Material = Enum.Material.Neon
  546. p.Size = Vector3.new(1,1,1)
  547. p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
  548. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  549. local m = Instance.new("SpecialMesh",p)
  550. m.MeshType = "Cylinder"
  551. m.Scale = Vector3.new(2000,2,2)
  552. local targ = Instance.new("Part",root)
  553. targ.Transparency = 1
  554. targ.CanCollide = false
  555. targ.Size = Vector3.new(1,1,1)
  556. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  557. CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
  558. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  559.  
  560. for i = 1,beamsize do
  561. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  562. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, BrickColor.new("Really red"))
  563. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, BrickColor.new("Really red"), 0)
  564. m.Scale = m.Scale+Vector3.new(0,1,1)
  565. p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
  566. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  567. wait(0.01)
  568. end
  569. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Really red"), 0)
  570. for i = 1,times do
  571. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  572. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, BrickColor.new("Really red"), 0)
  573. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, BrickColor.new("Really red"))
  574. p.CFrame = CFrame.new(pos)+Vector3.new(0,1000,0)
  575. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  576. wait(0.01)
  577. end
  578. for i =1,15 do
  579. m.Scale = m.Scale-Vector3.new(1,1,1)
  580. p.Transparency = i / 15
  581. wait(0.01)
  582. end
  583. p:Destroy()
  584. hum.WalkSpeed = 50
  585. attack = false
  586. end
  587.  
  588. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  589. local NEWMESH = IT(MESH)
  590. if MESH == "SpecialMesh" then
  591. NEWMESH.MeshType = MESHTYPE
  592. if MESHID ~= "nil" and MESHID ~= "" then
  593. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  594. end
  595. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  596. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  597. end
  598. end
  599. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  600. NEWMESH.Scale = SCALE
  601. NEWMESH.Parent = PARENT
  602. return NEWMESH
  603. end
  604.  
  605. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  606. local NEWPART = IT("Part")
  607. NEWPART.formFactor = FORMFACTOR
  608. NEWPART.Reflectance = REFLECTANCE
  609. NEWPART.Transparency = TRANSPARENCY
  610. NEWPART.CanCollide = false
  611. NEWPART.Locked = true
  612. NEWPART.Anchored = true
  613. if ANCHOR == false then
  614. NEWPART.Anchored = false
  615. end
  616. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  617. NEWPART.Name = NAME
  618. NEWPART.Size = SIZE
  619. NEWPART.Position = Torso.Position
  620. NEWPART.Material = MATERIAL
  621. NEWPART:BreakJoints()
  622. NEWPART.Parent = PARENT
  623. return NEWPART
  624. end
  625.  
  626. function clerp(a,b,t)
  627. local qa = {QuaternionFromCFrame(a)}
  628. local qb = {QuaternionFromCFrame(b)}
  629. local ax, ay, az = a.x, a.y, a.z
  630. local bx, by, bz = b.x, b.y, b.z
  631. local _t = 1-t
  632. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  633. end
  634. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  635. local DIRECTION = CF(StartPos,EndPos).lookVector
  636. return rayCast(StartPos, DIRECTION, Distance, Ignore)
  637. end
  638.  
  639.  
  640. function MakeForm(PART,TYPE)
  641. if TYPE == "Cyl" then
  642. local MSH = IT("CylinderMesh",PART)
  643. elseif TYPE == "Ball" then
  644. local MSH = IT("SpecialMesh",PART)
  645. MSH.MeshType = "Sphere"
  646. elseif TYPE == "Wedge" then
  647. local MSH = IT("SpecialMesh",PART)
  648. MSH.MeshType = "Wedge"
  649. end
  650. end
  651.  
  652. function turnto(position)
  653. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  654. end
  655.  
  656.  
  657. --intro
  658. hum.WalkSpeed = 0
  659. wait(0.5)
  660. attack = true
  661. for i = 1,25 do
  662. wait(0.01)
  663. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(10),math.rad(80),math.rad(0)),.1)
  664. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(10),math.rad(-80),math.rad(0)),.1)
  665. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 35))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.07 * math.cos(sine / 30))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  667. RW.C0=clerp(RW.C0,cf(1.5,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(-120)),.1)
  668. LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(120)),.1)
  669. end
  670. chatfunc("I love everything",BrickColor.new("Bright red"),"Fantasy")
  671. wait(2.8)
  672. chatfunc("Fire's spreading all around my room",BrickColor.new("Bright red"),"Fantasy")
  673. wait(3.5)
  674. chatfunc("My world's so bright",BrickColor.new("Bright red"),"Fantasy")
  675. wait(2)
  676. chatfunc("It's hard to breathe",BrickColor.new("Bright red"),"Fantasy")
  677. wait(1)
  678. chatfunc("but that's alright",BrickColor.new("Bright red"),"Fantasy")
  679. wait(1)
  680. chatfunc("Hush!",BrickColor.new("Bright red"),"Fantasy")
  681. for i = 1,30 do
  682. wait(0.01)
  683. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
  684. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  685. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  686. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  687. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  688. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  689. end
  690. wait(0)
  691.  
  692. --Hat Remover
  693.  
  694. local d = char:GetChildren()
  695. for i=1, #d do
  696. if (d[i].className == "Accessory") then
  697. d[i]:remove()
  698. end
  699. end
  700.  
  701. --Cloths & Face
  702.  
  703. BC.HeadColor = BrickColor.new("Bright yellow")
  704.  
  705. function cloths(id1,id2)
  706. char:FindFirstChildOfClass("Shirt"):Destroy()
  707. local shirt = Instance.new("Shirt", char)
  708. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=".. id1
  709. char:FindFirstChildOfClass("Pants"):Destroy()
  710. local pan = Instance.new("Pants", char)
  711. pan.PantsTemplate = "http://www.roblox.com/asset/?id=".. id2
  712. end
  713.  
  714. cloths(2421011350,3710369472)
  715.  
  716. function CreateDecal(id,prnt,face,itisaface)
  717. if itisaface == true then
  718. if hed.face ~= nil then
  719. hed.face:Destroy()
  720. end
  721. end
  722. local Decal = Instance.new("Decal", prnt)
  723. Decal.Face = face
  724. Decal.Texture = "http://www.roblox.com/asset/?id=".. id
  725. Decal.Name = "Imaige"
  726.  
  727. end
  728. CreateDecal(3788128593,hed,"Front",true)
  729.  
  730. attack = false
  731. DestroyerBall(root.Position,100,15,BrickColor.new("Really red"))
  732. --The Gun
  733.  
  734.  
  735.  
  736. o1 = Instance.new("Model")
  737. o2 = Instance.new("Part")
  738. o3 = Instance.new("Weld")
  739. o4 = Instance.new("Part")
  740. o5 = Instance.new("SpecialMesh")
  741. o6 = Instance.new("CFrameValue")
  742. o7 = Instance.new("Weld")
  743. o8 = Instance.new("Part")
  744. o9 = Instance.new("Weld")
  745. o10 = Instance.new("CFrameValue")
  746. o1.Name = "Gun"
  747. o1.Parent = char
  748. o2.Name = "WeldP"
  749. o2.Parent = o1
  750. o2.Transparency = 1
  751. o2.Position = Vector3.new(17.6912975, 9.1799202, 6.53496313)
  752. o2.Velocity = Vector3.new(0, -1165.99634, 0)
  753. o2.CanCollide = false
  754. o2.Size = Vector3.new(1, 2, 1)
  755. o2.CFrame = CFrame.new(17.6912975, 9.1799202, 6.53496313, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  756. o2.BottomSurface = Enum.SurfaceType.Smooth
  757. o2.TopSurface = Enum.SurfaceType.Smooth
  758. o2.Position = Vector3.new(17.6912975, 9.1799202, 6.53496313)
  759. o3.Name = "RAWeld"
  760. o3.Parent = o2
  761. o3.Part0 = o2
  762. o3.Part1 = RA
  763. o4.Name = "GunBody"
  764. o4.Parent = o1
  765. o4.Position = Vector3.new(17.8213062, 7.84493065, 6.12496281)
  766. o4.Rotation = Vector3.new(-90, 0, 0)
  767. o4.Velocity = Vector3.new(0, -1165.99634, 0)
  768. o4.CanCollide = false
  769. o4.Size = Vector3.new(0.300000012, 1, 1.50999963)
  770. o4.CFrame = CFrame.new(17.8213062, 7.84493065, 6.12496281, 1, 0, 0, 0, -1.1920929e-07, 1.00000012, 0, -1.00000012, -1.1920929e-07)
  771. o4.BottomSurface = Enum.SurfaceType.Smooth
  772. o4.TopSurface = Enum.SurfaceType.Smooth
  773. o4.Position = Vector3.new(17.8213062, 7.84493065, 6.12496281)
  774. o4.Orientation = Vector3.new(-90, 0, 0)
  775. o5.Parent = o4
  776. o5.MeshId = "rbxassetid://602885639"
  777. o5.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  778. o5.TextureId = "rbxassetid://602886463"
  779. o5.VertexColor = Vector3.new(2, 2, 2)
  780. o5.MeshType = Enum.MeshType.FileMesh
  781. o5.Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  782. o6.Name = "qRelativeCFrameWeldValue"
  783. o6.Parent = o4
  784. o6.Value = CFrame.new(-0.130008698, -0.410000324, 1.33498967, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
  785. o7.Name = "qCFrameWeldThingy"
  786. o7.Parent = o4
  787. o7.C1 = CFrame.new(-0.130008698, -0.410000324, 1.33498967, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
  788. o7.Part0 = o2
  789. o7.Part1 = o4
  790. o8.Name = "FireHole"
  791. o8.Parent = o1
  792. o8.Transparency = 1
  793. o8.Position = Vector3.new(17.8099995, 7.06997013, 5.77999496)
  794. o8.Velocity = Vector3.new(0, -1165.99634, 0)
  795. o8.CanCollide = false
  796. o8.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  797. o8.CFrame = CFrame.new(17.8099995, 7.06997013, 5.77999496, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  798. o8.BottomSurface = Enum.SurfaceType.Smooth
  799. o8.TopSurface = Enum.SurfaceType.Smooth
  800. o8.Position = Vector3.new(17.8099995, 7.06997013, 5.77999496)
  801. o9.Name = "qCFrameWeldThingy"
  802. o9.Parent = o8
  803. o9.C1 = CFrame.new(-0.118701935, 2.10995007, 0.754968166, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  804. o9.Part0 = o2
  805. o9.Part1 = o8
  806. o10.Name = "qRelativeCFrameWeldValue"
  807. o10.Parent = o8
  808. o10.Value = CFrame.new(-0.118701935, 2.10995007, 0.754968166, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  809. local Effectu = IT("Folder", o1)
  810. Effectu.Name = "Effects"
  811.  
  812. --Targetted Gui
  813.  
  814. abss = Instance.new("BillboardGui",Character)
  815. abss.Size = UDim2.new(10,0,10,0)
  816. abss.Enabled = false
  817. imgl = Instance.new("ImageLabel",abss)
  818. imgl.Position = UDim2.new(0,0,0,0)
  819. imgl.Size = UDim2.new(1,0,1,0)
  820. imgl.Image = "rbxassetid://711463989"
  821. imgl.BackgroundTransparency = 1
  822. imgl.ImageColor3 = Color3.new(.9,0,0)
  823. img2 = Instance.new("ImageLabel",abss)
  824. img2.Position = UDim2.new(0,0,0,0)
  825. img2.Size = UDim2.new(1,0,1,0)
  826. img2.Image = "rbxassetid://711463989"
  827. img2.BackgroundTransparency = 1
  828. img2.ImageColor3 = Color3.new(.9,0,0)
  829.  
  830.  
  831. --eye effect
  832.  
  833.  
  834. o1 = Instance.new("Model")
  835. o2 = Instance.new("Part")
  836. o3 = Instance.new("ParticleEmitter")
  837. o4 = Instance.new("ParticleEmitter")
  838. o5 = Instance.new("ParticleEmitter")
  839. o6 = Instance.new("ParticleEmitter")
  840. o7 = Instance.new("ParticleEmitter")
  841. o8 = Instance.new("ParticleEmitter")
  842. o9 = Instance.new("ParticleEmitter")
  843. o10 = Instance.new("ParticleEmitter")
  844. o11 = Instance.new("ParticleEmitter")
  845. o12 = Instance.new("ParticleEmitter")
  846. o13 = Instance.new("Part")
  847. o14 = Instance.new("Weld")
  848. o15 = Instance.new("CFrameValue")
  849. o16 = Instance.new("Weld")
  850. o1.Name = "Eye Effects"
  851. o1.Parent = char
  852. o2.Name = "1"
  853. o2.Parent = o1
  854. o2.Transparency = 1
  855. o2.Position = Vector3.new(0.966393709, 6.71075773, 47.394249)
  856. o2.Rotation = Vector3.new(88.0500031, 17.8999996, -83.6900024)
  857. o2.Velocity = Vector3.new(0, -2763.47119, 0)
  858. o2.CanCollide = false
  859. o2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  860. o2.CFrame = CFrame.new(0.966393709, 6.71075773, 47.394249, 0.104522705, 0.945848703, 0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, -0.994522512, 0.0993859768, 0.0323638916)
  861. o2.BottomSurface = Enum.SurfaceType.Smooth
  862. o2.TopSurface = Enum.SurfaceType.Smooth
  863. o2.Position = Vector3.new(0.966393709, 6.71075773, 47.394249)
  864. o2.Orientation = Vector3.new(72, 83.9899979, -0.00999999978)
  865. o3.Parent = o2
  866. o3.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  867. o3.Rotation = NumberRange.new(1000,1000)
  868. o3.Size = NumberSequence.new(0.059999998658895,0)
  869. o3.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  870. o3.LightEmission = 1
  871. o3.Texture = "http://www.roblox.com/asset/?id=242550536"
  872. o3.Lifetime = NumberRange.new(5,5)
  873. o3.Rate = 100000
  874. o3.RotSpeed = NumberRange.new(1000,1000)
  875. o3.VelocitySpread = 10
  876. o3.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  877. o4.Parent = o2
  878. o4.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  879. o4.Rotation = NumberRange.new(1000,1000)
  880. o4.Size = NumberSequence.new(0.059999998658895,0)
  881. o4.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  882. o4.LightEmission = 1
  883. o4.Texture = "http://www.roblox.com/asset/?id=242550536"
  884. o4.Lifetime = NumberRange.new(5,5)
  885. o4.Rate = 100000
  886. o4.RotSpeed = NumberRange.new(1000,1000)
  887. o4.VelocitySpread = 10
  888. o4.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  889. o5.Parent = o2
  890. o5.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  891. o5.Rotation = NumberRange.new(1000,1000)
  892. o5.Size = NumberSequence.new(0.059999998658895,0)
  893. o5.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  894. o5.LightEmission = 1
  895. o5.Texture = "http://www.roblox.com/asset/?id=242550536"
  896. o5.Lifetime = NumberRange.new(5,5)
  897. o5.Rate = 100000
  898. o5.RotSpeed = NumberRange.new(1000,1000)
  899. o5.VelocitySpread = 10
  900. o5.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  901. o6.Parent = o2
  902. o6.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  903. o6.Rotation = NumberRange.new(1000,1000)
  904. o6.Size = NumberSequence.new(0.059999998658895,0)
  905. o6.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  906. o6.LightEmission = 1
  907. o6.Texture = "http://www.roblox.com/asset/?id=242550536"
  908. o6.Lifetime = NumberRange.new(5,5)
  909. o6.Rate = 100000
  910. o6.RotSpeed = NumberRange.new(1000,1000)
  911. o6.VelocitySpread = 10
  912. o6.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  913. o7.Parent = o2
  914. o7.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  915. o7.Rotation = NumberRange.new(1000,1000)
  916. o7.Size = NumberSequence.new(0.059999998658895,0)
  917. o7.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  918. o7.LightEmission = 1
  919. o7.Texture = "http://www.roblox.com/asset/?id=242550536"
  920. o7.Lifetime = NumberRange.new(5,5)
  921. o7.Rate = 100000
  922. o7.RotSpeed = NumberRange.new(1000,1000)
  923. o7.VelocitySpread = 10
  924. o7.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  925. o8.Parent = o2
  926. o8.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  927. o8.Rotation = NumberRange.new(1000,1000)
  928. o8.Size = NumberSequence.new(0.059999998658895,0)
  929. o8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  930. o8.LightEmission = 1
  931. o8.Texture = "http://www.roblox.com/asset/?id=242550536"
  932. o8.Lifetime = NumberRange.new(5,5)
  933. o8.Rate = 100000
  934. o8.RotSpeed = NumberRange.new(1000,1000)
  935. o8.VelocitySpread = 10
  936. o8.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  937. o9.Parent = o2
  938. o9.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  939. o9.Rotation = NumberRange.new(1000,1000)
  940. o9.Size = NumberSequence.new(0.059999998658895,0)
  941. o9.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  942. o9.LightEmission = 1
  943. o9.Texture = "http://www.roblox.com/asset/?id=242550536"
  944. o9.Lifetime = NumberRange.new(5,5)
  945. o9.Rate = 100000
  946. o9.RotSpeed = NumberRange.new(1000,1000)
  947. o9.VelocitySpread = 10
  948. o9.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  949. o10.Parent = o2
  950. o10.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  951. o10.Rotation = NumberRange.new(1000,1000)
  952. o10.Size = NumberSequence.new(0.059999998658895,0)
  953. o10.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  954. o10.LightEmission = 1
  955. o10.Texture = "http://www.roblox.com/asset/?id=242550536"
  956. o10.Lifetime = NumberRange.new(5,5)
  957. o10.Rate = 100000
  958. o10.RotSpeed = NumberRange.new(1000,1000)
  959. o10.VelocitySpread = 10
  960. o10.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  961. o11.Parent = o2
  962. o11.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  963. o11.Rotation = NumberRange.new(1000,1000)
  964. o11.Size = NumberSequence.new(0.059999998658895,0)
  965. o11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  966. o11.LightEmission = 1
  967. o11.Texture = "http://www.roblox.com/asset/?id=242550536"
  968. o11.Lifetime = NumberRange.new(5,5)
  969. o11.Rate = 100000
  970. o11.RotSpeed = NumberRange.new(1000,1000)
  971. o11.VelocitySpread = 10
  972. o11.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  973. o12.Parent = o2
  974. o12.Transparency = NumberSequence.new(0.08500000089407,0.08500000089407)
  975. o12.Rotation = NumberRange.new(1000,1000)
  976. o12.Size = NumberSequence.new(0.059999998658895,0)
  977. o12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  978. o12.LightEmission = 1
  979. o12.Texture = "http://www.roblox.com/asset/?id=242550536"
  980. o12.Lifetime = NumberRange.new(5,5)
  981. o12.Rate = 100000
  982. o12.RotSpeed = NumberRange.new(1000,1000)
  983. o12.VelocitySpread = 10
  984. o12.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  985. o13.Name = "HedW"
  986. o13.Parent = o1
  987. o13.BrickColor = BrickColor.new("Bright yellow")
  988. o13.Transparency = 1
  989. o13.Position = Vector3.new(0.832499981, 6.5000329, 46.8062744)
  990. o13.Rotation = Vector3.new(-180, 0, -180)
  991. o13.Velocity = Vector3.new(0, -2763.47119, 0)
  992. o13.CanCollide = false
  993. o13.Size = Vector3.new(2, 1, 1)
  994. o13.CFrame = CFrame.new(0.832499981, 6.5000329, 46.8062744, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  995. o13.TopSurface = Enum.SurfaceType.Smooth
  996. o13.Color = Color3.new(0.960784, 0.803922, 0.188235)
  997. o13.Position = Vector3.new(0.832499981, 6.5000329, 46.8062744)
  998. o13.Orientation = Vector3.new(0, 180, 0)
  999. o13.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1000. o14.Name = "HEDWeld"
  1001. o14.Parent = o13
  1002. o14.Part0 = o13
  1003. o14.Part1 = hed
  1004. o15.Name = "qRelativeCFrameWeldValue"
  1005. o15.Parent = o13
  1006. o15.Value = CFrame.new(-0.133893728, 0.210724831, -0.587974548, -0.104522705, -0.945848703, -0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, 0.994522512, -0.0993859768, -0.0323638916)
  1007. o16.Name = "qCFrameWeldThingy"
  1008. o16.Parent = o13
  1009. o16.C1 = CFrame.new(-0.133893728, 0.210724831, -0.587974548, -0.104522705, -0.945848703, -0.307319582, -6.80983067e-05, 0.30901897, -0.951055884, 0.994522512, -0.0993859768, -0.0323638916)
  1010. o16.Part0 = o2
  1011. o16.Part1 = o13
  1012.  
  1013.  
  1014. local Hole = char.Gun.FireHole
  1015.  
  1016. --another functions
  1017.  
  1018. function WACKYEFFECT(Table)
  1019. local TYPE = (Table.EffectType or "Sphere")
  1020. local SIZE = (Table.Size or VT(1,1,1))
  1021. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1022. local TRANSPARENCY = (Table.Transparency or 0)
  1023. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1024. local CFRAME = (Table.CFrame or Torso.CFrame)
  1025. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1026. local ROTATION1 = (Table.RotationX or 0)
  1027. local ROTATION2 = (Table.RotationY or 0)
  1028. local ROTATION3 = (Table.RotationZ or 0)
  1029. local MATERIAL = (Table.Material or "Neon")
  1030. local COLOR = (Table.Color or C3(1,1,1))
  1031. local TIME = (Table.Time or 45)
  1032. local SOUNDID = (Table.SoundID or nil)
  1033. local SOUNDPITCH = (Table.SoundPitch or nil)
  1034. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1035. coroutine.resume(coroutine.create(function()
  1036. local PLAYSSOUND = false
  1037. local SOUND = nil
  1038. local EFFECT = CreatePart(3, Effectu, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1039. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1040. PLAYSSOUND = true
  1041. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1042. end
  1043. EFFECT.Color = COLOR
  1044. local MSH = nil
  1045. if TYPE == "Sphere" then
  1046. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1047. elseif TYPE == "Block" or TYPE == "Box" then
  1048. MSH = IT("BlockMesh",EFFECT)
  1049. MSH.Scale = SIZE
  1050. elseif TYPE == "Wave" then
  1051. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1052. elseif TYPE == "Ring" then
  1053. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1054. elseif TYPE == "Slash" then
  1055. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1056. elseif TYPE == "Round Slash" then
  1057. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1058. elseif TYPE == "Swirl" then
  1059. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1060. elseif TYPE == "Skull" then
  1061. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1062. elseif TYPE == "Crystal" then
  1063. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1064. end
  1065. if MSH ~= nil then
  1066. local MOVESPEED = nil
  1067. if MOVEDIRECTION ~= nil then
  1068. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1069. end
  1070. local GROWTH = SIZE - ENDSIZE
  1071. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1072. if TYPE == "Block" then
  1073. EFFECT.CFrame = CFRAME*ANGLES(RAD(math.random(0,360)),RAD(math.random(0,360)),RAD(math.random(0,360)))
  1074. else
  1075. EFFECT.CFrame = CFRAME
  1076. end
  1077. for LOOP = 1, TIME+1 do
  1078. wait(0.01)
  1079. MSH.Scale = MSH.Scale - GROWTH/TIME
  1080. if TYPE == "Wave" then
  1081. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1082. end
  1083. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1084. if TYPE == "Block" then
  1085. EFFECT.CFrame = CFRAME*ANGLES(RAD(math.random(0,360)),RAD(math.random(0,360)),RAD(math.random(0,360)))
  1086. else
  1087. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1088. end
  1089. if MOVEDIRECTION ~= nil then
  1090. local ORI = EFFECT.Orientation
  1091. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1092. EFFECT.Orientation = ORI
  1093. end
  1094. end
  1095. if PLAYSSOUND == false then
  1096. EFFECT:remove()
  1097. else
  1098. repeat wait(0.01) until EFFECT:FindFirstChildOfClass("Sound") == nil
  1099. EFFECT:remove()
  1100. end
  1101. else
  1102. if PLAYSSOUND == false then
  1103. EFFECT:remove()
  1104. else
  1105. repeat wait(0.01) until EFFECT:FindFirstChildOfClass("Sound") == nil
  1106. EFFECT:remove()
  1107. end
  1108. end
  1109. end))
  1110. end
  1111.  
  1112. function SpawnTrail(FROM,TO,BIG)
  1113. local TRAIL = CreatePart(3, Effectu, "Neon", 0, 0.5, BrickColor.Random().Color, "Trail", VT(0,0,0))
  1114. MakeForm(TRAIL,"Cyl")
  1115. local DIST = (FROM - TO).Magnitude
  1116. if BIG == true then
  1117. TRAIL.Size = VT(0.5,DIST,0.5)
  1118. else
  1119. TRAIL.Size = VT(0.25,DIST,0.25)
  1120. end
  1121. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1122. coroutine.resume(coroutine.create(function()
  1123. for i = 1, 5 do
  1124. wait(0.01)
  1125. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1126. end
  1127. TRAIL:remove()
  1128. end))
  1129. end
  1130.  
  1131. function damage(partomg,amount)
  1132. local candamage = true
  1133. partomg.Touched:Connect(function(hit)
  1134. if (hit.Parent:IsA("Model")) then
  1135. if hit.Parent.Humanoid ~= nil and candamage == true then
  1136. hit.Parent.Humanoid:TakeDamage(amount)
  1137. candamage = false
  1138. end
  1139. end
  1140. end)
  1141. end
  1142.  
  1143.  
  1144. --Sprint
  1145.  
  1146. local sprinted = false
  1147. mouse.KeyDown:Connect(function(key)
  1148. if key == "q" then
  1149. if sprinted == false then
  1150. sprinted = true
  1151. hum.WalkSpeed = hum.WalkSpeed + 30
  1152. elseif sprinted == true then
  1153. sprinted = false
  1154. hum.WalkSpeed = hum.WalkSpeed - 30
  1155. end
  1156. end
  1157. end)
  1158.  
  1159. --attacks
  1160. --functions
  1161.  
  1162. local canAttack = true
  1163. local Rooted = false
  1164. local keyHold = true
  1165. local targetted = nil
  1166. local istargetted = false
  1167.  
  1168. function tagotplr()
  1169. if mouse.Target == nil then
  1170. print("Mouse's Target Is Nil")
  1171. elseif mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1172. targetted = mouse.Target.Parent
  1173. abss.Parent = targetted
  1174. abss.Adornee = targetted.Torso
  1175. CreateSound("743521450",10,targetted.Torso)
  1176. abss.Enabled = true
  1177. istargetted = true
  1178.  
  1179. end
  1180. end
  1181.  
  1182. local shutting = false
  1183.  
  1184.  
  1185.  
  1186. function shot()
  1187. attack = true
  1188. Rooted = false
  1189. for i=0, 0.2, 0.05 / Animation_Speed do
  1190. wait(0.01)
  1191. turnto(mouse.Hit.p)
  1192. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1194. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RSC0, 0.5 / Animation_Speed)
  1195. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1196. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1197. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1198. end
  1199. repeat
  1200. for i=0, 0.2, 0.05 / Animation_Speed do
  1201. wait(0.01)
  1202. turnto(mouse.Hit.p)
  1203. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1204. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1205. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RSC0, 0.5 / Animation_Speed)
  1206. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1207. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1208. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1209. end
  1210. local HIT,POS = CastProperRay(Hole.Position, mouse.Hit.p, 1000, Character)
  1211. SpawnTrail(Hole.Position,POS,1)
  1212. if HIT ~= nil then
  1213. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1214. HIT:Destroy()
  1215. end
  1216. end
  1217. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1218. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
  1219. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
  1220. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 1, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = math.random(8,11)/10, SoundVolume = 8})
  1221. Humanoid.CameraOffset = VT(math.random(-5,5)/2.5,math.random(-5,5)/2.5,math.random(-5,5)/2.5)/30
  1222.  
  1223. for i=0, 15 do
  1224. wait(0.01)
  1225. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1226. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1227. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1228. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1229. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.1)
  1230. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.1)
  1231.  
  1232. end
  1233. until keyHold == false
  1234. attack = false
  1235. Rooted = false
  1236. end
  1237.  
  1238. function attackone()
  1239. attack = true
  1240. for i = 0,1,0.1 do
  1241. wait(0.01)
  1242. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  1243. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  1244. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  1245. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  1246. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  1247. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  1248. end
  1249. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  1250.  
  1251. local hitb = Instance.new("Part", char)
  1252. hitb.Anchored = true
  1253. hitb.CanCollide = false
  1254. hitb.FormFactor = 3
  1255. hitb.Name = "Ring"
  1256. hitb.Material = "Neon"
  1257. hitb.Size = Vector3.new(1, 1, 1)
  1258. hitb.Transparency = 1
  1259. hitb.TopSurface = 0
  1260. hitb.BottomSurface = 0
  1261. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  1262. damage(RA,15)
  1263. hitb:Destroy()
  1264. for i = 0,1,0.1 do
  1265. wait(0.01)
  1266. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  1267. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  1268. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  1269. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  1270. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  1271. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  1272. end
  1273.  
  1274. attack = false
  1275. end
  1276.  
  1277. function attacktwo()
  1278. attack = true
  1279. for i = 0,1,0.1 do
  1280. wait(0.01)
  1281. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  1282. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  1283. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  1284. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  1285. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  1286. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  1287. end
  1288. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  1289. local hitb = Instance.new("Part", char)
  1290. hitb.Anchored = true
  1291. hitb.CanCollide = false
  1292. hitb.FormFactor = 3
  1293. hitb.Name = "Ring"
  1294. hitb.Material = "Neon"
  1295. hitb.Size = Vector3.new(1, 1, 1)
  1296. hitb.Transparency = 1
  1297. hitb.TopSurface = 0
  1298. hitb.BottomSurface = 0
  1299. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  1300. damage(LA,15)
  1301. hitb:Destroy()
  1302. for i = 0,1,0.1 do
  1303. wait(0.01)
  1304. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  1305. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  1306. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  1307. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  1308. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  1309. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  1310. end
  1311. attack = false
  1312. end
  1313.  
  1314. function XTarget()
  1315. attack = true
  1316. keyHold = true
  1317. for i = 1,30 do
  1318. wait(0.01)
  1319. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1320. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1321. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1322. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1323. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(180),math.rad(0),math.rad(20)),.1)
  1324. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(180),math.rad(0),math.rad(-20)),.1)
  1325.  
  1326. end
  1327. repeat
  1328. wait(0.1)
  1329. local espl = Instance.new("Explosion", char)
  1330. espl.Position = Mouse.Hit.Position
  1331. espl.BlastRadius = 4
  1332. espl.BlastPressure = 100
  1333. espl.ExplosionType = "CratersAndDebris"
  1334. until keyHold == false
  1335. attack = false
  1336. end
  1337.  
  1338. function XBai()
  1339. if istargetted == true then
  1340. local truiget = abss.Parent
  1341. root.CFrame = targetted.HumanoidRootPart.CFrame * cf(0,0.5,2)
  1342. local wed = Instance.new("Weld", targetted.Head)
  1343. wed.Part0 = targetted.Head
  1344. wed.Part1 = LA
  1345. wed.C0 = CFrame.new(0,0,1)*angles(1.5,0,0)
  1346. attack =true
  1347. for i = 1,30 do
  1348. wait(0.01)
  1349. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1350. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1353. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  1354. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(150),math.rad(0),math.rad(0)),.1)
  1355.  
  1356. end
  1357. for i = 1,30 do
  1358. wait(0.01)
  1359. RH.C0=clerp(RH.C0,cf(1,0,0)*angles(math.rad(30),math.rad(90),math.rad(0)),.1)
  1360. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1361. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),-1.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
  1362. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  1363. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.1)
  1364. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(50),math.rad(0),math.rad(0)),.1)
  1365.  
  1366. end
  1367. local espl = Instance.new("Explosion", char)
  1368. espl.Position = targetted.Torso.Position
  1369. espl.BlastRadius = 0
  1370. espl.BlastPressure = 1000
  1371. espl.ExplosionType = "CratersAndDebris"
  1372. targetted.Humanoid.Health = 0
  1373. CreateSound("142070127",10,tors)
  1374. wait(2)
  1375. attack = false
  1376. end
  1377. end
  1378.  
  1379. function XTaunt()
  1380. attack = true
  1381. CreateSound("1247581778",10,hed)
  1382. for i = 1,100 do
  1383. wait(0.01)
  1384. RH.C0=clerp(RH.C0,cf(1,-1+0.1*math.cos(sine / 35),0)*angles(math.rad(20),math.rad(80),math.rad(0)),.1)
  1385. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine / 35),0)*angles(math.rad(20),math.rad(-80),math.rad(0)),.1)
  1386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0-0.2*math.cos(sine / 35))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  1387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  1388. RW.C0=clerp(RW.C0,cf(1.5,0.5-0.1*math.cos(sine / 30) ,0)*angles(math.rad(-40),math.rad(0),math.rad(-150)),.1)
  1389. LW.C0=clerp(LW.C0,cf(-1.5,0.5-0.1*math.cos(sine / 30) ,0)*angles(math.rad(-40),math.rad(0),math.rad(150)),.1)
  1390.  
  1391. end
  1392. attack = false
  1393. end
  1394.  
  1395. local Transformed = false
  1396.  
  1397. function transform()
  1398. if Transformed == false then
  1399. Transformed = true
  1400. attack = true
  1401. for i = 1,30 do
  1402. wait(0.01)
  1403. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
  1404. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1405. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  1406. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1407. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1408. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1409. end
  1410. BC.LeftArmColor = BrickColor.new("Black")
  1411. BC.RightArmColor = BrickColor.new("Black")
  1412. BC.TorsoColor = BrickColor.new("Black")
  1413. BC.HeadColor = BrickColor.new("Black")
  1414. cloths(3070874281,3263268363)
  1415. them.SoundId = "rbxassetid://885996042"
  1416. attack = false
  1417. DestroyerBall(root.Position,100,15,BrickColor.new("Really black"))
  1418.  
  1419. elseif Transformed == true then
  1420. Transformed = false
  1421. attack = true
  1422. for i = 1,30 do
  1423. wait(0.01)
  1424. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
  1425. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1426. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  1427. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1428. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1429. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1430. end
  1431. cloths(2421011350,3710369472)
  1432. them.SoundId = "rbxassetid://3351731797"
  1433. attack = false
  1434. BC.LeftArmColor = BrickColor.new("Bright yellow")
  1435. BC.RightArmColor = BrickColor.new("Bright yellow")
  1436. BC.TorsoColor = BrickColor.new("Bright yellow")
  1437. BC.HeadColor = BrickColor.new("Bright yellow")
  1438. DestroyerBall(root.Position,100,15,BrickColor.new("Really red"))
  1439. end
  1440. end
  1441.  
  1442. function Laugh()
  1443. attack = true
  1444. for i = 1,20 do
  1445. wait(0.01)
  1446. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1447. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1448. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1449. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1450. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1451. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1452.  
  1453. end
  1454. end
  1455.  
  1456. function Ashes() --Straight from... Whatever it was called.
  1457. attack = true
  1458. hum.WalkSpeed = 1.01
  1459. Character.Head.Imaige.Texture = "rbxassetid://360687027"
  1460. CreateSound("290084602",10,hed)
  1461. for i = 0,6.2,0.1 do
  1462. wait(0.01)
  1463. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1464. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-30), Rad(0), Rad(0)), 0.3)
  1465. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1466. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
  1467. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(145)), 0.1)
  1468. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-0), Rad(0), Rad(-145)), 0.1)
  1469. end
  1470. for i = 0,6.2,0.1 do
  1471. wait(0.01)
  1472. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1473. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1474. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1475. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-20)), 0.15)
  1476. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(15)), 0.1)
  1477. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-30), Rad(0), Rad(-15)), 0.1)
  1478. end
  1479. attack = false
  1480. Character.Head.Imaige.Texture = "rbxassetid://3788128593"
  1481. hum.WalkSpeed = 16
  1482. end
  1483.  
  1484. local attacktype = 1
  1485. --keys & mouse
  1486. mouse.Button1Down:Connect(function()
  1487. if attacktype == 1 then
  1488. if canAttack == true then
  1489. canAttack = false
  1490. attacktype = 2
  1491. attackone()
  1492. wait(0.05)
  1493. canAttack = true
  1494. end
  1495. elseif attacktype == 2 then
  1496. if canAttack == true then
  1497. canAttack = false
  1498. attacktype = 1
  1499. attacktwo()
  1500. wait(0.05)
  1501. canAttack = true
  1502. end
  1503. end
  1504. end)
  1505.  
  1506. mouse.Button1Up:Connect(function()
  1507. keyHold = true
  1508. end)
  1509.  
  1510. mouse.KeyDown:Connect(function(key)
  1511. if key == "e" then
  1512. tagotplr()
  1513. elseif key == "z" then
  1514. keyHold = true
  1515. shot()
  1516. elseif key == "x" then
  1517. XTarget()
  1518. elseif key == "r" then
  1519. XBai()
  1520. elseif key == "t" then
  1521. if Transformed == false then
  1522. XTaunt()
  1523. elseif Transformed == true then
  1524. Ashes()
  1525. end
  1526. elseif key == "m" then
  1527. transform()
  1528. end
  1529. end)
  1530.  
  1531. mouse.KeyUp:Connect(function(key)
  1532. if key == "z" then
  1533. keyHold = false
  1534. elseif key == "x" then
  1535. keyHold = false
  1536. end
  1537. end)
  1538.  
  1539. --Animations
  1540.  
  1541.  
  1542.  
  1543. local equipped = false
  1544. local idle = 0
  1545. local change = 1
  1546. local val = 0
  1547. local toim = 0
  1548. local idleanim = 0.4
  1549. ANIMATE.Parent = nil
  1550. hum.WalkSpeed = 14
  1551. hum.JumpPower = 60
  1552. hum.MaxHealth = "inf"
  1553. hum.Health = "inf"
  1554. hum.Animator.Parent = nil
  1555.  
  1556.  
  1557.  
  1558. while true do
  1559. wait(0.001)
  1560. img2.Rotation = img2.Rotation + 3
  1561. imgl.Rotation = imgl.Rotation + 3
  1562. sine = sine + change
  1563. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1564. local velderp = root.Velocity.y
  1565. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1566. if equipped == true or equipped == false then
  1567. if attack == false then
  1568. idle = idle + 1
  1569. else
  1570. idle = 0
  1571. end
  1572. if 1 < root.Velocity.y and hitfloor == nil and attack == false then
  1573. Anim = "Jump"
  1574. change = 1
  1575. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  1576. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  1577. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 3 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  1578. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1579. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1580. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1581. elseif -1 > root.Velocity.y and hitfloor == nil and attack == false then
  1582. Anim = "FaLL"
  1583. change = 1
  1584. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(90),math.rad(0)),.1)
  1585. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.1)
  1586. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.05 * math.cos(sine / 32),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  1587. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1588. RW.C0=clerp(RW.C0,cf(1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  1589. LW.C0=clerp(LW.C0,cf(-1.5,0.5 ,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.1)
  1590.  
  1591. elseif torvel < 1 and hitfloor ~= nil and attack == false then
  1592. Anim = "Idle"
  1593. change = 1
  1594. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(0),math.rad(80),math.rad(0)),.1)
  1595. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 35),0)*angles(math.rad(0),math.rad(-80),math.rad(0)),.1)
  1596. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 35))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1597. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.07 * math.cos(sine / 30))*angles(math.rad(20),math.rad(10),math.rad(10)),.1)
  1598. RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.07 * math.cos(sine / 30) ,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.1)
  1599. LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.07 * math.cos(sine / 30) ,-0.5)*angles(math.rad(-20 + 0.5 * math.cos(sine / 30)),math.rad(0),math.rad(120)),.1)
  1600. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil and attack == false then
  1601. Anim = "Walk"
  1602. change = 2.6
  1603. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0 + 30 * math.cos(sine / 25)),math.rad(90),math.rad(0)),.1)
  1604. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0 - 30 * math.cos(sine / 25)),math.rad(-90),math.rad(0)),.1)
  1605. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.07 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  1606. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.06 * math.cos(sine / 20))*angles(math.rad(20),math.rad(10),math.rad(10)),.1)
  1607. RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.06 * math.cos(sine / 20) ,0)*angles(math.rad(0 - 30 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
  1608. LW.C0=clerp(LW.C0,cf(-1.6,0.7 - 0.06 * math.cos(sine / 20) ,-0.5)*angles(math.rad(-20),math.rad(0),math.rad(120)),.1)
  1609.  
  1610. elseif torvel >= 25 and hitfloor ~= nil and attack == false then
  1611. Anim = "Sprint"
  1612. change = 3
  1613. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 + 90 * math.cos(sine / 20)),math.rad(90),math.rad(0)),.1)
  1614. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0 - 90 * math.cos(sine / 20)),math.rad(-90),math.rad(0)),.1)
  1615. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.07 * math.cos(sine / 35))*angles(math.rad(30),math.rad(0 + 5 * math.cos(sine / 30)),math.rad(0 + 5 * math.cos(sine / 30))),.1)
  1616. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0 - 0.06 * math.cos(sine / 30))*angles(math.rad(-30),math.rad(0),math.rad(0)),.1)
  1617. RW.C0=clerp(RW.C0,cf(1.5,0.5 - 0.06 * math.cos(sine / 30) ,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.1)
  1618. LW.C0=clerp(LW.C0,cf(-1.5,0.5 - 0.06 * math.cos(sine / 30) ,0)*angles(math.rad(-60),math.rad(0),math.rad(0)),.1)
  1619.  
  1620. end
  1621. end
  1622.  
  1623.  
  1624.  
  1625. if 0 < #Effects then
  1626. for e = 1, #Effects do
  1627. if Effects[e] ~= nil then
  1628. local Thing = Effects[e]
  1629. if Thing ~= nil then
  1630. local Part = Thing[1]
  1631. local Mode = Thing[2]
  1632. local DeLAy = Thing[3]
  1633. local IncX = Thing[4]
  1634. local IncY = Thing[5]
  1635. local IncZ = Thing[6]
  1636. if 1 >= Thing[1].TRAnsparency then
  1637. if Thing[2] == "Block1" then
  1638. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50))
  1639. local Mesh = Thing[1].Mesh
  1640. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1641. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1642. elseif Thing[2] == "Block2" then
  1643. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1644. local Mesh = Thing[7]
  1645. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1646. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1647. elseif Thing[2] == "Block3" then
  1648. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.RAndom(-50, 50), math.RAndom(-50, 50), math.RAndom(-50, 50)) + Vector3.new(0, 0.15, 0)
  1649. local Mesh = Thing[7]
  1650. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1651. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1652. elseif Thing[2] == "Cylinder" then
  1653. local Mesh = Thing[1].Mesh
  1654. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1655. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1656. elseif Thing[2] == "Blood" then
  1657. local Mesh = Thing[7]
  1658. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1659. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1660. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1661. elseif Thing[2] == "Elec" then
  1662. local Mesh = Thing[1].Mesh
  1663. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1664. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1665. elseif Thing[2] == "Disappear" then
  1666. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1667. elseif Thing[2] == "Shatter" then
  1668. Thing[1].TRAnsparency = Thing[1].TRAnsparency + Thing[3]
  1669. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1670. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1671. Thing[6] = Thing[6] + Thing[5]
  1672. end
  1673. else
  1674. Part.Parent = nil
  1675. table.remove(Effects, e)
  1676. end
  1677. end
  1678. end
  1679. end
  1680. end
  1681. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement