Advertisement
wowzers

ice nuk launcher

Jun 26th, 2017
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.34 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Character = Player.Character
  3. wait(0.016666666666667)
  4. Effects = {}
  5. local Player = game.Players.localPlayer
  6. local Character = Player.Character
  7. local Humanoid = Character.Humanoid
  8. local mouse = Player:GetMouse()
  9. local m = Instance.new("Model", Character)
  10. m.Name = "WeaponModel"
  11. local effect = Instance.new("Model", Character)
  12. effect.Name = "Effect"
  13. local LeftArm = Character["Left Arm"]
  14. local RightArm = Character["Right Arm"]
  15. local LeftLeg = Character["Left Leg"]
  16. local RightLeg = Character["Right Leg"]
  17. local Head = Character.Head
  18. local Torso = Character.Torso
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = Character.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local equipped = false
  23. local attack = false
  24. local Anim = "Idle"
  25. local idle = 0
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local mana = 0
  32. local it = Instance.new
  33. vt = Vector3.new
  34. local grabbed = false
  35. local cf = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  41. Humanoid.Animator:Destroy()
  42. Character.Animate:Destroy()
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  46. RSH = nil
  47. RW = Instance.new("Weld")
  48. LW = Instance.new("Weld")
  49. RH = Torso["Right Hip"]
  50. LH = Torso["Left Hip"]
  51. RSH = Torso["Right Shoulder"]
  52. LSH = Torso["Left Shoulder"]
  53. RSH.Parent = nil
  54. LSH.Parent = nil
  55. RW.Name = "RW"
  56. RW.Part0 = Torso
  57. RW.C0 = cf(1.5, 0.5, 0)
  58. RW.C1 = cf(0, 0.5, 0)
  59. RW.Part1 = RightArm
  60. RW.Parent = Torso
  61. LW.Name = "LW"
  62. LW.Part0 = Torso
  63. LW.C0 = cf(-1.5, 0.5, 0)
  64. LW.C1 = cf(0, 0.5, 0)
  65. LW.Part1 = LeftArm
  66. LW.Parent = Torso
  67. clerp = function(a, b, t)
  68.  
  69. return a:lerp(b, t)
  70. end
  71.  
  72. local RbxUtility = LoadLibrary("RbxUtility")
  73. local Create = RbxUtility.Create
  74. RemoveOutlines = function(part)
  75.  
  76. part.TopSurface = 10
  77. end
  78.  
  79. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  80.  
  81. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  82. RemoveOutlines(Part)
  83. return Part
  84. end
  85.  
  86. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  87.  
  88. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  89. if Mesh == "SpecialMesh" then
  90. Msh.MeshType = MeshType
  91. Msh.MeshId = MeshId
  92. end
  93. return Msh
  94. end
  95.  
  96. local co1 = 25
  97. local co2 = 0
  98. local co3 = 0
  99. local co4 = 0
  100. local cooldown1 = 0
  101. local cooldown2 = 0
  102. local cooldown3 = 0
  103. local cooldown4 = 0
  104. local maxEnergy = 0
  105. local Energy = 0
  106. local skill1stam = 25
  107. local skill2stam = 0
  108. local skill3stam = 0
  109. local skill4stam = 0
  110. local recovermana = 5
  111. local skillcolorscheme = BrickColor.new("Smokey grey").Color
  112. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  113. makeframe = function(par, trans, pos, size, color)
  114.  
  115. local frame = Instance.new("Frame", par)
  116. frame.BackgroundTransparency = trans
  117. frame.BorderSizePixel = 0
  118. frame.Position = pos
  119. frame.Size = size
  120. frame.BackgroundColor3 = color
  121. return frame
  122. end
  123.  
  124. makelabel = function(par, text)
  125.  
  126. local label = Instance.new("TextLabel", par)
  127. label.BackgroundTransparency = 1
  128. label.Size = UDim2.new(1, 0, 1, 0)
  129. label.Position = UDim2.new(0, 0, 0, 0)
  130. label.TextColor3 = Color3.new(255, 255, 255)
  131. label.TextStrokeTransparency = 0
  132. label.FontSize = Enum.FontSize.Size32
  133. label.Font = Enum.Font.SourceSansBold
  134. label.BorderSizePixel = 0
  135. label.TextScaled = true
  136. label.Text = text
  137. end
  138.  
  139. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  140. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  141. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  142. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  143. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  144. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  145. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  146. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  147. text1 = Instance.new("TextLabel", framesk1)
  148. text1.BackgroundTransparency = 1
  149. text1.Size = UDim2.new(1, 0, 1, 0)
  150. text1.Position = UDim2.new(0, 0, 0, 0)
  151. text1.TextColor3 = Color3.new(255, 255, 255)
  152. text1.TextStrokeTransparency = 0
  153. text1.FontSize = Enum.FontSize.Size18
  154. text1.Font = Enum.Font.SourceSansLight
  155. text1.BorderSizePixel = 0
  156. text1.TextScaled = true
  157. text1.Text = "[Z]\n\tAim"
  158. text2 = Instance.new("TextLabel", framesk2)
  159. text2.BackgroundTransparency = 1
  160. text2.Size = UDim2.new(1, 0, 1, 0)
  161. text2.Position = UDim2.new(0, 0, 0, 0)
  162. text2.TextColor3 = Color3.new(255, 255, 255)
  163. text2.TextStrokeTransparency = 0
  164. text2.FontSize = Enum.FontSize.Size18
  165. text2.Font = Enum.Font.SourceSansLight
  166. text2.BorderSizePixel = 0
  167. text2.TextScaled = true
  168. text2.Text = "[X]\n Explosive Shot"
  169. text3 = Instance.new("TextLabel", framesk3)
  170. text3.BackgroundTransparency = 1
  171. text3.Size = UDim2.new(1, 0, 1, 0)
  172. text3.Position = UDim2.new(0, 0, 0, 0)
  173. text3.TextColor3 = Color3.new(255, 255, 255)
  174. text3.TextStrokeTransparency = 0
  175. text3.FontSize = Enum.FontSize.Size18
  176. text3.Font = Enum.Font.SourceSansLight
  177. text3.BorderSizePixel = 0
  178. text3.TextScaled = false
  179. text3.Text = "[C]\n Shockwave"
  180. text4 = Instance.new("TextLabel", framesk4)
  181. text4.BackgroundTransparency = 1
  182. text4.Size = UDim2.new(1, 0, 1, 0)
  183. text4.Position = UDim2.new(0, 0, 0, 0)
  184. text4.TextColor3 = Color3.new(255, 255, 255)
  185. text4.TextStrokeTransparency = 0
  186. text4.FontSize = Enum.FontSize.Size18
  187. text4.Font = Enum.Font.SourceSansLight
  188. text4.BorderSizePixel = 0
  189. text4.TextScaled = true
  190. text4.Text = "[V]\n Rampage"
  191. ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui)
  192. ArtificialHB.Name = "Heartbeat"
  193. Player.PlayerGui:WaitForChild("Heartbeat")
  194. frame = 0.033333333333333
  195. tf = 0
  196. allowframeloss = false
  197. tossremainder = false
  198. lastframe = tick()
  199. Player.PlayerGui.Heartbeat:Fire()
  200. local gg = false
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202.  
  203. if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then
  204. gg = true
  205. end
  206. if gg == true then
  207. return
  208. end
  209. tf = tf + s
  210. if frame <= tf then
  211. if allowframeloss then
  212. Player.PlayerGui.Heartbeat:Fire()
  213. lastframe = tick()
  214. else
  215. for i = 1, math.floor(tf / frame) do
  216. Player.PlayerGui.Heartbeat:Fire()
  217. end
  218. lastframe = tick()
  219. end
  220. if tossremainder then
  221. tf = 0
  222. else
  223. tf = tf - frame * math.floor(tf / frame)
  224. end
  225. end
  226. end
  227. )
  228. swait = function(num)
  229.  
  230. if num == 0 or num == nil then
  231. ArtificialHB.Event:wait()
  232. else
  233. for i = 0, num do
  234. ArtificialHB.Event:wait()
  235. end
  236. end
  237. end
  238.  
  239. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  240.  
  241. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  242. return Weld
  243. end
  244.  
  245. rayCast = function(Position, Direction, Range, Ignore)
  246.  
  247. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  248. end
  249.  
  250. CreateSound = function(id, par, vol, pit)
  251.  
  252. coroutine.resume(coroutine.create(function()
  253.  
  254. local sou = Instance.new("Sound", par or workspace)
  255. sou.Volume = 0.01
  256. sou.Pitch = 1
  257. sou.SoundId = "rbxassetid://492961938"
  258. swait()
  259. sou:play()
  260. game:GetService("Debris"):AddItem(sou, 6)
  261. end
  262. ))
  263. end
  264.  
  265. local getclosest = function(obj, distance)
  266.  
  267. local last, lastx = distance + 1, nil
  268. for i,v in pairs(workspace:GetChildren()) do
  269. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  270. local t = v.Torso
  271. local dist = (t.Position - obj.Position).magnitude
  272. if dist <= distance and dist < last then
  273. last = dist
  274. lastx = v
  275. end
  276. end
  277. end
  278. return lastx
  279. end
  280.  
  281. Handle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  282. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.09519327, -0.237398148, 0.0399169922, 0, -1, 0, 0, 0, -1, 1, 0, 0))
  283. FakeHandle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  284. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  285. Motor = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Black", "Motor", Vector3.new(0.50999999, 0.430000126, 0.460000008))
  286. MotorWeld = CreateWeld(m, FakeHandle, Motor, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.565002441, 0, -0.155000687, 0, 1, 0, 0, 0, 1, 1, 0, 0))
  287. CreateMesh("CylinderMesh", Motor, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  288. Guhn = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Guhn", Vector3.new(1,1,1))
  289. GuhnWeld = CreateWeld(m, Character.Torso, Guhn, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  290. Barrel = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Barrel", Vector3.new(0.4200000003, 0.20000021, 0.420000017))
  291. BarrelWeld = CreateWeld(m, Guhn, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0,.5,0, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  292. CreateMesh("BlockMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  293. Part2 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "partmeme", Vector3.new(.3, .3, 1))
  294. Part2 = CreateWeld(m, Guhn, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  295.  
  296.  
  297.  
  298. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  299.  
  300. if hit.Parent == nil then
  301. return
  302. end
  303. local h = hit.Parent:FindFirstChild("Humanoid")
  304. for _,v in pairs(hit.Parent:children()) do
  305. if v:IsA("Humanoid") then
  306. h = v
  307. end
  308. end
  309. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  310. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  311. return
  312. end
  313. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  314. game:GetService("Debris"):AddItem(c, 0.5)
  315. if HitSound ~= nil and HitPitch ~= nil then
  316. CreateSound(HitSound, hit, 1, HitPitch)
  317. end
  318. local Damage = math.random(minim, maxim)
  319. local blocked = false
  320. local block = hit.Parent:findFirstChild("Block")
  321. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  322. blocked = true
  323. block.Value = block.Value - 1
  324. print(block.Value)
  325. end
  326. if blocked == false then
  327. HitHealth = h.Health
  328. h.Health = h.Health - Damage
  329. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Hologram" then
  330. print("gained spree")
  331. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
  332. end
  333. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 then
  334. print("gained kill")
  335. Player.PlayerGui.Kills.Value = Player.PlayerGui.Kills.Value + 1
  336. end
  337. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  338. else
  339. h.Health = h.Health - Damage / 2
  340. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  341. end
  342. if Type == "Knockdown" then
  343. local hum = hit.Parent.Humanoid
  344. hum.PlatformStand = true
  345. coroutine.resume(coroutine.create(function(HHumanoid)
  346.  
  347. swait(1)
  348. HHumanoid.PlatformStand = false
  349. end
  350. ), hum)
  351. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  352. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  353. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  354. game:GetService("Debris"):AddItem(bodvol, 0.5)
  355. game:GetService("Debris"):AddItem(rl, 0.5)
  356. elseif Type == "Normal" then
  357. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  358. if knockback > 0 then
  359. vp.Parent = hit.Parent.Torso
  360. end
  361. game:GetService("Debris"):AddItem(vp, 0.5)
  362. elseif Type == "Up" then
  363. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  364. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  365. elseif Type == "DarkUp" then
  366. coroutine.resume(coroutine.create(function()
  367.  
  368. for i = 0, 1, 0.1 do
  369. swait()
  370. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  371. end
  372. end
  373. ))
  374. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  375. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  376. elseif Type == "Snare" then
  377. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  378. game:GetService("Debris"):AddItem(bp, 0.5)
  379. elseif Type == "Freeze" then
  380. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  381. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  382. hit.Parent.Torso.Anchored = true
  383. coroutine.resume(coroutine.create(function(Part)
  384.  
  385. swait(1.5)
  386. Part.Anchored = false
  387. end
  388. ), hit.Parent.Torso)
  389. game:GetService("Debris"):AddItem(BodPos, 3)
  390. game:GetService("Debris"):AddItem(BodGy, 3)
  391.  
  392.  
  393. end
  394. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  395. game:GetService("Debris"):AddItem(debounce, Delay)
  396. c = Instance.new("ObjectValue")
  397. c.Name = "creator"
  398. c.Value = Player
  399. c.Parent = h
  400. game:GetService("Debris"):AddItem(c, 0.5)
  401. end
  402. end
  403.  
  404. ShowDamage = function(Pos, Text, Time, Color)
  405.  
  406. local Rate = 0.033333333333333
  407. if not Pos then
  408. local Pos = Vector3.new(0, 0, 0)
  409. end
  410. local Text = Text or ""
  411. local Time = Time or 2
  412. if not Color then
  413. local Color = Color3.new(1, 0, 1)
  414. end
  415. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  416. EffectPart.Anchored = true
  417. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  418. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  419. game.Debris:AddItem(EffectPart, Time + 0.1)
  420. EffectPart.Parent = game:GetService("Workspace")
  421. delay(0, function()
  422.  
  423. local Frames = Time / Rate
  424. for Frame = 1, Frames do
  425. wait(Rate)
  426. local Percent = Frame / Frames
  427. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  428. TextLabel.TextTransparency = Percent
  429. end
  430. if EffectPart and EffectPart.Parent then
  431. EffectPart:Destroy()
  432. end
  433. end
  434. )
  435. end
  436.  
  437. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  438.  
  439. for _,c in pairs(workspace:children()) do
  440. local hum = c:findFirstChild("Humanoid")
  441. if hum ~= nil then
  442. local head = c:findFirstChild("Torso")
  443. if head ~= nil then
  444. local targ = head.Position - Part.Position
  445. local mag = targ.magnitude
  446. if mag <= magni and c.Name ~= Player.Name then
  447. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  448. end
  449. end
  450. end
  451. end
  452. end
  453.  
  454. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  455.  
  456. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  457. prt.Anchored = true
  458. prt.CFrame = cframe
  459. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  460. game:GetService("Debris"):AddItem(prt, 10)
  461. if Type == 1 or Type == nil then
  462. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  463. else
  464. if Type == 2 then
  465. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  466. end
  467. end
  468. end
  469.  
  470. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  471.  
  472. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  473. prt.Anchored = true
  474. prt.CFrame = cframe
  475. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  476. game:GetService("Debris"):AddItem(prt, 10)
  477. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  478. end
  479.  
  480. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  481.  
  482. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  483. prt.Anchored = true
  484. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  485. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  486. game:GetService("Debris"):AddItem(prt, 10)
  487. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  488. end
  489.  
  490. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  491.  
  492. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  493. prt.Anchored = true
  494. prt.CFrame = cframe
  495. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  496. game:GetService("Debris"):AddItem(prt, 10)
  497. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  498. end
  499.  
  500. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  501.  
  502. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  503. prt.Anchored = true
  504. prt.CFrame = cframe
  505. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  506. game:GetService("Debris"):AddItem(prt, 10)
  507. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  508. end
  509.  
  510. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  511.  
  512. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  513. prt.Anchored = true
  514. prt.CFrame = cframe
  515. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  516. game:GetService("Debris"):AddItem(prt, 10)
  517. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  518. end
  519.  
  520. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  521.  
  522. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  523. prt.Anchored = true
  524. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  525. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  526. local num = math.random(10, 50) / 1000
  527. game:GetService("Debris"):AddItem(prt, 10)
  528. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  529. end
  530.  
  531. CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  532.  
  533. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  534. prt.Anchored = true
  535. prt.CFrame = cframe
  536. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  537. game:GetService("Debris"):AddItem(prt, 10)
  538. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  539. end
  540.  
  541. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  542.  
  543. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  544. prt.Anchored = true
  545. prt.CFrame = cframe
  546. prt.Material = "Neon"
  547. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  548. game:GetService("Debris"):AddItem(prt, 10)
  549. coroutine.resume(coroutine.create(function(Part, Mesh)
  550.  
  551. for i = 0, 1, delay do
  552. swait()
  553. Part.Transparency = i
  554. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  555. end
  556. Part.Parent = nil
  557. end
  558. ), prt, msh)
  559. end
  560.  
  561. shoottraildd = function(mouse, partt, SpreadAmount, multiply, Type)
  562.  
  563. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  564. local MainPos = partt.Position
  565. local MainPos2 = mouse.Hit.p + SpreadVectors
  566. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  567. local speed = 100
  568. local num = 500
  569. coroutine.resume(coroutine.create(function()
  570.  
  571. repeat
  572. swait()
  573. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  574. local mag = (MainPos - pos).magnitude
  575. if Type == "Explosive" then
  576. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  577. else
  578. if Type == "Poison" then
  579. Laser(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  580. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  581. else
  582. if Type == "Stun" then
  583. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  584. end
  585. end
  586. end
  587. MainPos = MainPos + MouseLook.lookVector * speed
  588. num = num - 1
  589. MouseLook = MouseLook * angles(0, math.random(-2,2), 0)
  590. if hit ~= nil then
  591. num = 0
  592. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  593. refpart.Anchored = true
  594. refpart.CFrame = CFrame.new(pos)
  595. game:GetService("Debris"):AddItem(refpart, 2)
  596. end
  597. do
  598. if num <= 1 then
  599. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  600. refpart.Anchored = true
  601. refpart.CFrame = CFrame.new(pos)
  602. if Type == "Explosive" then
  603. SphereEffect(BrickColor.new("Pastel Blue"), refpart.CFrame, 1,1,1,350,350,350,0.05)
  604. swait(40)
  605. for i = 0, 145, 5 do
  606. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  607. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 100, 100, 100, 0.05)
  608. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 100, 100, 100, 0.07)
  609. MagniDamage(refpart, 100, 1 * multiply, 1 * multiply, -5, "Knockdown")
  610. swait(5)
  611. end
  612. else
  613. if Type == "Poison" then
  614. if hit.Name == "memes" then
  615. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  616. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  617. else
  618. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  619. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  620. for i = 0,100,5 do
  621. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth-1
  622. hit.Parent.Humanoid.WalkSpeed = 5
  623. swait(2.5)
  624. hit.Parent.Humanoid.WalkSpeed = 16
  625. end
  626. end
  627. else
  628. if Type == "Stun" then
  629. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  630. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  631. for i = 0,100,5 do
  632. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health+2
  633. hit.Parent.Humanoid.WalkSpeed = 16
  634. swait(.5)
  635. end
  636. end
  637. end
  638. end
  639. end
  640. game:GetService("Debris"):AddItem(refpart, 0)
  641. end
  642. until num <= 0
  643. end
  644. ))
  645. end
  646.  
  647. shoottraildd2 = function(mouse, partt, SpreadAmount, multiply, Type)
  648.  
  649. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  650. local MainPos = partt.Position
  651. local MainPos2 = mouse.Hit.p + SpreadVectors
  652. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  653. local speed = 500
  654. local num = 5000
  655. coroutine.resume(coroutine.create(function()
  656.  
  657. repeat
  658. swait()
  659. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  660. local mag = (MainPos - pos).magnitude
  661. if Type == "Explosive" then
  662. Laser(BrickColor.new("Really black"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -5.5, 0, -5.5, 0.15)
  663. else
  664. if Type == "Poison" then
  665. Laser(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  666. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  667. else
  668. if Type == "Stun" then
  669. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  670. end
  671. end
  672. end
  673. MainPos = MainPos + MouseLook.lookVector * speed
  674. num = num - 1
  675. MouseLook = MouseLook * angles(math.rad(-.2), 0, 0)
  676. if hit ~= nil then
  677. num = 0
  678. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  679. refpart.Anchored = true
  680. refpart.CFrame = CFrame.new(pos)
  681. game:GetService("Debris"):AddItem(refpart, 2)
  682. end
  683. do
  684. if num <= 1 then
  685. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  686. refpart.Anchored = true
  687. refpart.CFrame = CFrame.new(pos)
  688. if Type == "Explosive" then
  689. SphereEffect(BrickColor.new("Institutional white "), refpart.CFrame, 1,1,1,350,350,350,0.05)
  690. swait(40)
  691. for i = 0, 145, 5 do
  692. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  693. BlockEffect(BrickColor.new("Really black"), refpart.CFrame, 1, 1, 1, 100, 100, 100, 0.05)
  694. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 50, 50, 500, 0.07)
  695. MagniDamage(refpart, 50, 1 * multiply, 3 * multiply, 0, "Freeze")
  696. hit.Parent.Humanoid.WalkSpeed = -16
  697. swait(5)
  698. end
  699. hit.Parent.Humanoid.WalkSpeed = 16
  700. else
  701. if Type == "Poison" then
  702. if hit.Name == "memes" then
  703. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  704. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  705. else
  706. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  707. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  708. for i = 0, 3, 4 do
  709. SphereEffect(BrickColor.new("Bright violet"), hit.Parent.Torso.CFrame, 1, 1, 1, 1, 1, 1, 0.07 )
  710. for i = 0,20,1 do
  711. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth/1.01
  712. hit.Parent.Humanoid.WalkSpeed = 5
  713. swait(2.5)
  714. hit.Parent.Humanoid.WalkSpeed = 16
  715. end
  716. end
  717. end
  718. else
  719. if Type == "Stun" then
  720. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  721. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  722. for i = 0,100,5 do
  723. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth*10
  724. swait(5)
  725. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.MaxHealth
  726. hit.Parent.Humanoid.WalkSpeed = 64
  727. swait(60)
  728. hit.Parent.Humanoid.MaxHealth = 100
  729. hit.Parent.Humanoid.WalkSpeed=16
  730. end
  731. end
  732. end
  733. end
  734. end
  735. game:GetService("Debris"):AddItem(refpart, 0)
  736. end
  737. until num <= 0
  738. end
  739. ))
  740. end
  741.  
  742. shoottrail1 = function(mouse, partt, SpreadAmount, multiply)
  743.  
  744. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  745. local MainPos = partt.Position
  746. local MainPos2 = mouse.Hit.p + SpreadVectors
  747. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  748. local speed = 15.0
  749. local num = 200
  750. CreateSound("rbxassetid://256172142", partt, 1, 1)
  751. coroutine.resume(coroutine.create(function()
  752.  
  753. repeat
  754. swait()
  755. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  756. local mag = (MainPos - pos).magnitude
  757. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  758. MainPos = MainPos + MouseLook.lookVector * speed
  759. num = num - 1
  760. MouseLook = MouseLook * angles(0,-.02, 0)
  761. if hit ~= nil then
  762. num = 0
  763. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  764. refpart.Anchored = true
  765. refpart.CFrame = CFrame.new(pos)
  766. game:GetService("Debris"):AddItem(refpart, 2)
  767. end
  768. do
  769. if num <= 0 then
  770. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  771. refpart.Anchored = true
  772. refpart.CFrame = CFrame.new(pos)
  773. if hit ~= nil then
  774. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  775. end
  776. game:GetService("Debris"):AddItem(refpart, 0)
  777. end
  778. end
  779. until num <= 0
  780. end
  781. ))
  782. end
  783. shoottrail2 = function(mouse, partt, SpreadAmount, multiply)
  784.  
  785. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  786. local MainPos = partt.Position
  787. local MainPos2 = mouse.Hit.p + SpreadVectors
  788. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  789. local speed = 15.0
  790. local num = 200
  791. CreateSound("rbxassetid://256172142", partt, 1, 1)
  792. coroutine.resume(coroutine.create(function()
  793.  
  794. repeat
  795. swait()
  796. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  797. local mag = (MainPos - pos).magnitude
  798. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  799. MainPos = MainPos + MouseLook.lookVector * speed
  800. num = num - 1
  801. MouseLook = MouseLook * angles(0,.02, 0)
  802. if hit ~= nil then
  803. num = 0
  804. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  805. refpart.Anchored = true
  806. refpart.CFrame = CFrame.new(pos)
  807. game:GetService("Debris"):AddItem(refpart, 2)
  808. end
  809. do
  810. if num <= 0 then
  811. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  812. refpart.Anchored = true
  813. refpart.CFrame = CFrame.new(pos)
  814. if hit ~= nil then
  815. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  816. end
  817. game:GetService("Debris"):AddItem(refpart, 0)
  818. end
  819. end
  820. until num <= 0
  821. end
  822. ))
  823. end
  824.  
  825. shoottrail3 = function(mouse, partt, SpreadAmount, multiply)
  826.  
  827. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  828. local MainPos = partt.Position
  829. local MainPos2 = mouse.Hit.p + SpreadVectors
  830. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  831. local speed = 15.0
  832. local num = 200
  833. CreateSound("rbxassetid://256172142", partt, 1, 1)
  834. coroutine.resume(coroutine.create(function()
  835.  
  836. repeat
  837. swait()
  838. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  839. local mag = (MainPos - pos).magnitude
  840. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  841. MainPos = MainPos + MouseLook.lookVector * speed
  842. num = num - 1
  843. MouseLook = MouseLook * angles(0,0, 0)
  844. if hit ~= nil then
  845. num = 0
  846. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  847. refpart.Anchored = true
  848. refpart.CFrame = CFrame.new(pos)
  849. game:GetService("Debris"):AddItem(refpart, 2)
  850. end
  851. do
  852. if num <= 0 then
  853. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  854. refpart.Anchored = true
  855. refpart.CFrame = CFrame.new(pos)
  856. if hit ~= nil then
  857. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  858. end
  859. game:GetService("Debris"):AddItem(refpart, 0)
  860. end
  861. end
  862. until num <= 0
  863. end
  864. ))
  865. end
  866.  
  867. shoottrail4 = function(mouse, partt, SpreadAmount, multiply)
  868.  
  869. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  870. local MainPos = partt.Position
  871. local MainPos2 = mouse.Hit.p + SpreadVectors
  872. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  873. local speed = 15.0
  874. local num = 200
  875. CreateSound("rbxassetid://256172142", partt, 1, 1)
  876. coroutine.resume(coroutine.create(function()
  877.  
  878. repeat
  879. swait()
  880. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  881. local mag = (MainPos - pos).magnitude
  882. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  883. MainPos = MainPos + MouseLook.lookVector * speed
  884. num = num - 1
  885. MouseLook = MouseLook * angles(math.rad(2), math.rad(2), math.rad(2))
  886. if hit ~= nil then
  887. num = 0
  888. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  889. refpart.Anchored = true
  890. refpart.CFrame = CFrame.new(pos)
  891. game:GetService("Debris"):AddItem(refpart, 2)
  892. end
  893. do
  894. if num <= 0 then
  895. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  896. refpart.Anchored = true
  897. refpart.CFrame = CFrame.new(pos)
  898. if hit ~= nil then
  899. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  900. end
  901. game:GetService("Debris"):AddItem(refpart, 0)
  902. end
  903. end
  904. until num <= 0
  905. end
  906. ))
  907. end
  908.  
  909. shoottrailOmega = function(mouse, partt, SpreadAmount, multiply)
  910.  
  911. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  912. local MainPos = partt.Position
  913. local MainPos2 = mouse.Hit.p + SpreadVectors
  914. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  915. local speed = 15.0
  916. local num = 20
  917. CreateSound("rbxassetid://256172142", partt, 1, 1)
  918. coroutine.resume(coroutine.create(function()
  919.  
  920. repeat
  921. swait()
  922. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  923. local mag = (MainPos - pos).magnitude
  924. Laser(BrickColor.new("Pastel Blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  925. MainPos = MainPos + MouseLook.lookVector * speed
  926. num = num - 1
  927. MouseLook = MouseLook * angles(0, math.random(-2,2), 0)
  928. if hit ~= nil then
  929. num = 0
  930. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  931. refpart.Anchored = true
  932. refpart.CFrame = CFrame.new(pos)
  933. game:GetService("Debris"):AddItem(refpart, 2)
  934. end
  935. do
  936. if num <= 0 then
  937. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  938. refpart.Anchored = true
  939. refpart.CFrame = CFrame.new(pos)
  940. if hit ~= nil then
  941. MagniDamage(refpart, 5, -30 * multiply, -10 * multiply, 0, "Normal")
  942. end
  943. game:GetService("Debris"):AddItem(refpart, 0)
  944. end
  945. end
  946. until num <= 0
  947. end
  948. ))
  949. end
  950.  
  951. attackone = function()
  952.  
  953. attack = true
  954. local con = Hitbox.Touched:connect(function(hit)
  955.  
  956. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  957. end
  958. )
  959. for i = 0, 1, 0.2 do
  960. swait()
  961. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3)
  962. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-40)), 0.3)
  963. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  964. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  965. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  966. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  967. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  968. end
  969. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  970. for i = 0, 1, 0.1 do
  971. swait()
  972. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  973. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  974. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  975. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  976. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  977. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  978. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  979. end
  980. con:disconnect()
  981. attack = false
  982. end
  983.  
  984. attacktwo = function()
  985.  
  986. attack = true
  987. local con = Hitbox.Touched:connect(function(hit)
  988.  
  989. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  990. end
  991. )
  992. for i = 0, 1, 0.2 do
  993. swait()
  994. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  995. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  996. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  997. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  998. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  999. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1000. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1001. end
  1002. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.8)
  1003. for i = 0, 1, 0.1 do
  1004. swait()
  1005. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1006. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1007. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1008. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1009. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1010. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1011. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1012. end
  1013. con:disconnect()
  1014. attack = false
  1015. end
  1016.  
  1017. attackthree = function()
  1018. attack = true
  1019. MagniDamage(Barrel, 0, 0, 0, 0, "Normal")
  1020. for i = 0, 9, 1 do
  1021. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1022. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.07)
  1023. swait(10)
  1024. end
  1025. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1026. swait(1)
  1027. attack = false
  1028. end
  1029.  
  1030. yatata = function()
  1031. for i = 0,10,5 do
  1032. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1033. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1034. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1035. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1036. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1037. shoottraildd(mouse, Barrel, 0, 0.7, "Explosive")
  1038. swait(5)
  1039. end
  1040. end
  1041.  
  1042. yatatatest = function()
  1043.  
  1044. attack = true
  1045. local con = Hitbox.Touched:connect(function(hit)
  1046.  
  1047. Damagefunc(Hitbox, hit, -15, -10, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1048. end
  1049. )
  1050. for i = 0, 1, 0.2 do
  1051. swait()
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1053. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1054. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1055. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1056. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1057. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1058. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1059. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1060. end
  1061. for i = 1, 5 do
  1062. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1063. for i = 0, 1, 0.2 do
  1064. swait()
  1065. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1066. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1067. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1068. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1069. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1070. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1071. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1072. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1073. end
  1074. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1075. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  1076. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1077. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1078. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1079. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1080. for i = 0, 1, 0.2 do
  1081. swait()
  1082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1083. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1084. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1085. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1086. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1087. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1088. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1089. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1090. end
  1091. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1092. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1093. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1094. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1095. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1096. for i = 0, 1, 0.2 do
  1097. swait()
  1098. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1099. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1100. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1101. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1102. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1103. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1104. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1105. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1106. end
  1107. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1108. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.9)
  1109. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1110. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1111. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1112. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1113. for i = 0, 1, 0.2 do
  1114. swait()
  1115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1116. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1117. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1118. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1119. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1120. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1121. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1122. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1123. end
  1124. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1125. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1126. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1127. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1128. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1129. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1130. end
  1131. con:disconnect()
  1132. attack = false
  1133. end
  1134.  
  1135. Grenade = function()
  1136.  
  1137. attack = true
  1138. CreateSound("http://www.roblox.com/asset/?id=134626404", Barrel, 1, 1.6)
  1139. shoottraildd(mouse, Barrel, 0, 1, "Explosive")
  1140. swait(15)
  1141. shoottraildd(mouse, Barrel, 0, 1, "Explosive")
  1142. swait(15)
  1143. shoottraildd(mouse, Barrel, 0, 1, "Explosive")
  1144. swait(15)
  1145. attack = false
  1146. end
  1147.  
  1148. Grenade2 = function()
  1149. attack = true
  1150. CreateSound("rbxassetid://260421433", Guhn, 1, 1.6)
  1151. shoottraildd2(mouse, Barrel, 0, 1, "Explosive")
  1152. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1153. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1154. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 14,1,1, 0.07)
  1155. Humanoid.AutoRotate = true
  1156. attack = false
  1157. end
  1158.  
  1159. local bang = false
  1160. SuperGrenade = function()
  1161. bang = true
  1162. attack = true
  1163. for i = 0, 9, 1 do
  1164. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1165. BlockEffect(BrickColor.new("Pastel Blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1166. swait(2.5)
  1167. end
  1168. for i = 0, 4, 1 do
  1169. for i = 0, 9, 1 do
  1170. shoottraildd(mouse, Barrel, 15, 1.5, "Poison")
  1171. end
  1172. swait(7.5)
  1173. end
  1174. attack = false
  1175. bang = false
  1176. end
  1177.  
  1178. local bang = false
  1179. SuperGrenade2 = function()
  1180. bang = true
  1181. attack = true
  1182. for i = 0, 9, 1 do
  1183. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1184. BlockEffect(BrickColor.new("Pastel Blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1185. swait(2.5)
  1186. end
  1187. for i = 0, 4, 1 do
  1188. for i = 0, 9, 1 do
  1189. shoottraildd(mouse, Barrel, 15, 1.5, "Stun")
  1190. end
  1191. swait(7.5)
  1192. end
  1193. attack = false
  1194. bang = false
  1195. end
  1196.  
  1197. Quake = function()
  1198.  
  1199. attack = true
  1200. for i = 0, 1, 0.2 do
  1201. swait()
  1202. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1203. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1204. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1205. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1206. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1207. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1208. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1209. end
  1210. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1.3)
  1211. for i = 0, 1, 0.2 do
  1212. swait()
  1213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1214. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1215. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1216. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1217. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1218. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1219. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1220. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1221. end
  1222. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1.1)
  1223. for i = 0, 1, 0.05 do
  1224. swait()
  1225. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.07)
  1226. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1227. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(20), math.rad(90)), 0.3)
  1228. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(20), math.rad(-90)), 0.3)
  1229. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(40), math.rad(-70)), 0.3)
  1230. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1231. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1232. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1233. end
  1234. CreateSound("http://www.roblox.com/asset/?id=134626404", RootPart, 1, 1)
  1235. MagniDamage(Barrel, 15, 10, 15, 0, "Knockdown")
  1236. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.07)
  1237. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.03)
  1238. RingEffect(BrickColor.new("White"), RootPart.CFrame * cf(0, -2, -10) * angles(1.57, 0, 0), 3, 3, 1, 5, 5, 0, 0.07)
  1239. CloudEffect(BrickColor.new("Smokey grey"), RootPart.CFrame * cf(0, -2, -10), 1, 3, 1, 0.3, 1, 0.3, 0.01)
  1240. for i = 0, 1, 0.1 do
  1241. swait()
  1242. Torso.Velocity = RootPart.CFrame.lookVector * -20
  1243. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1244. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(10), math.rad(90)), 0.3)
  1245. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.3)
  1246. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(40), math.rad(-70)), 0.3)
  1247. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1248. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1249. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1250. end
  1251. attack = false
  1252. end
  1253.  
  1254. local aiming = false
  1255. Aim = function()
  1256.  
  1257. attack = true
  1258. aiming = true
  1259. Humanoid.JumpPower = 50
  1260. Humanoid.WalkSpeed = 16
  1261. Humanoid.AutoRotate = false
  1262. for i = 0, 1, 0.1 do
  1263. swait()
  1264. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1266. RW.C0 = clerp(RW.C0, CFrame.new(1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1268. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1269. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1270. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1271. end
  1272. end
  1273.  
  1274. local bang = false
  1275. shoot = function()
  1276.  
  1277. bang = true
  1278. for i = 0, 9, 1 do
  1279. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1280. BlockEffect(BrickColor.new("Pastel Blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1281. swait(2.5)
  1282. end
  1283. for i = 0, 4, 1 do
  1284. for i = 0, 9, 1 do
  1285. shoottraildd(mouse, Barrel, 15, 1.5, "Explosive")
  1286. end
  1287. swait(7.5)
  1288. end
  1289. bang = false
  1290. end
  1291.  
  1292. local bang = false
  1293. shoot2 = function()
  1294.  
  1295. bang = true
  1296. for i = 0, 9, 1 do
  1297. BlockEffect(BrickColor.new("Alder"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1298. BlockEffect(BrickColor.new("Royal purple"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1299. swait(2.5)
  1300. end
  1301. for i = 0, 4, 1 do
  1302. for i = 0, 9, 1 do
  1303. shoottraildd(mouse, Barrel, 15, 1.5, "Poison")
  1304. end
  1305. swait(7.5)
  1306. end
  1307. bang = false
  1308. end
  1309.  
  1310. local bang = false
  1311. shoot3 = function()
  1312.  
  1313. bang = true
  1314. for i = 0, 9, 1 do
  1315. BlockEffect(BrickColor.new("Shamrock"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1316. BlockEffect(BrickColor.new("Lime green"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1317. swait(2.5)
  1318. end
  1319. for i = 0, 4, 1 do
  1320. for i = 0, 9, 1 do
  1321. shoottraildd(mouse, Barrel, 15, 1.5, "Stun")
  1322. end
  1323. swait(7.5)
  1324. end
  1325. bang = false
  1326. end
  1327.  
  1328. local bang = false
  1329. OmegaShoot = function()
  1330.  
  1331. bang = true
  1332. for i = 0, 9, 1 do
  1333. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1334. BlockEffect(BrickColor.new("Pastel Blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1335. swait(2.5)
  1336. end
  1337. for i = 0, 4, 1 do
  1338. for i = 0, 9, 1 do
  1339. shoottraildd2(mouse, Barrel, 15, 1.5, "Stun")
  1340. end
  1341. swait(7.5)
  1342. end
  1343. bang = false
  1344. end
  1345.  
  1346.  
  1347. mouse.Button1Down:connect(function()
  1348.  
  1349. if attack == false and attacktype == 1 and aiming == false then
  1350. attacktype = 1
  1351. attackthree()
  1352. else
  1353. if attack == false and attacktype == 2 and aiming == false then
  1354. attacktype = 3
  1355. attacktwo()
  1356. else
  1357. if attack == false and attacktype == 3 and aiming == false then
  1358. attacktype = 1
  1359. attackthree()
  1360. end
  1361. end
  1362. end
  1363. if attack == true and aiming == true and bang == false then
  1364. if cooldown1 >= 0 then
  1365. cooldown1 = cooldown1
  1366. shoot()
  1367. else
  1368. Humanoid.JumpPower = 50
  1369. Humanoid.WalkSpeed = 16
  1370. Humanoid.AutoRotate = true
  1371. attack = false
  1372. aiming = false
  1373. end
  1374. end
  1375. end
  1376. )
  1377. mouse.KeyDown:connect(function(k)
  1378.  
  1379. k = k:lower()
  1380. if attack == false and k == "z" and aiming == false then
  1381. Aim()
  1382. else
  1383. if attack == true and k == "z" and aiming == true then
  1384. Humanoid.WalkSpeed = 16
  1385. Humanoid.JumpPower = 50
  1386. Humanoid.AutoRotate = true
  1387. attack = false
  1388. aiming = false
  1389. else
  1390. if attack == false and co2 <= cooldown2 and k == "x" then
  1391. cooldown2 = 0
  1392. Grenade()
  1393. else
  1394. if attack == false and co3 <= cooldown3 and k == "c" then
  1395. cooldown3 = 0
  1396. Grenade2()
  1397. else
  1398. if attack == false and co4 <= cooldown4 and k == "v" then
  1399. cooldown4 = 0
  1400. yatata()
  1401. else
  1402. if attack == true and aiming == true and bang == false and k == "x" then
  1403. shoot2()
  1404. else
  1405. if attack == true and aiming == true and bang == false and k == "c" then
  1406. shoot3()
  1407. else
  1408. if attack == true and aiming == true and bang == false and k == "v" then
  1409. OmegaShoot()
  1410. end
  1411. end
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. )
  1420. updateskills = function()
  1421.  
  1422. if cooldown1 <= co1 and aiming == false then
  1423. cooldown1 = cooldown1 + 0.033333333333333
  1424. end
  1425. if cooldown2 <= co2 then
  1426. cooldown2 = cooldown2 + 0.033333333333333
  1427. end
  1428. if cooldown3 <= co3 then
  1429. cooldown3 = cooldown3 + 0.033333333333333
  1430. end
  1431. if cooldown4 <= co4 then
  1432. cooldown4 = cooldown4 + 0.033333333333333
  1433. end
  1434. end
  1435.  
  1436. while true do
  1437. swait()
  1438. if aiming == true then
  1439. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1440. local direction = aim.lookVector
  1441. local headingA = math.atan2(direction.x, direction.z)
  1442. headingA = math.deg(headingA)
  1443. Humanoid.AutoRotate = false
  1444. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1445. else
  1446. do
  1447. Humanoid.AutoRotate = true
  1448. updateskills()
  1449. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1450. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1451. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1452. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1453. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1454. velocity = RootPart.Velocity.y
  1455. sine = sine + change
  1456. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1457. if equipped == true or equipped == false then
  1458. if 10000 < RootPart.Velocity.y and hit == nil then
  1459. Anim = "Jump"
  1460. if attack == false then
  1461. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos((sine) / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1462. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1463. RW.C0 = clerp(RW.C0, CFrame.new(1.6, 0.5, -0.4) * angles(math.rad(240), math.rad(0), math.rad(-30 + 5 * math.cos((sine) / 15))), 0.3)
  1464. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1465. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos((sine) / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1466. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos((sine) / 20), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1467. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1468. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -0.3, -0.2) * angles(math.rad(0), math.rad(50), math.rad(-60 - 0.5 * math.cos((sine) / 25))), 0.3)
  1469. end
  1470. else
  1471. if RootPart.Velocity.y < -10000000 and hit == nil then
  1472. Anim = "Fall"
  1473. if attack == false then
  1474. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos((sine) / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1475. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1476. RW.C0 = clerp(RW.C0, CFrame.new(1.6, 0.5, -0.4) * angles(math.rad(240), math.rad(0), math.rad(-30 + 5 * math.cos((sine) / 15))), 0.3)
  1477. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1478. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos((sine) / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1479. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos((sine) / 20), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1480. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1481. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -0.3, -0.2) * angles(math.rad(0), math.rad(50), math.rad(-60 - 0.5 * math.cos((sine) / 25))), 0.3)
  1482. end
  1483. else
  1484. if Torsovelocity < 1 and hit ~= nil then
  1485. Anim = "Idle"
  1486. if attack == false then
  1487. change = 1
  1488. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 ) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
  1489. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1490. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1491. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1492. RH.C0 = clerp(RH.C0, cf(1, -1 + 0, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1493. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1494. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1495. end
  1496. else
  1497. if 200000000000 < Torsovelocity and hit ~= nil then
  1498. Anim = "Walk"
  1499. if attack == false then
  1500. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1501. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(10), math.rad(90)), 0.3)
  1502. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1503. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  1504. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1505. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1506. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1507. end
  1508. end
  1509. end
  1510. end
  1511. end
  1512. end
  1513. end
  1514. end
  1515. if 0 < #Effects then
  1516. for e = 1, #Effects do
  1517. if Effects[e] ~= nil then
  1518. local Thing = Effects[e]
  1519. if Thing ~= nil then
  1520. local Part = Thing[1]
  1521. local Mode = Thing[2]
  1522. local Delay = Thing[3]
  1523. local IncX = Thing[4]
  1524. local IncY = Thing[5]
  1525. local IncZ = Thing[6]
  1526. if Thing[1].Transparency <= 1 then
  1527. if Thing[2] == "Block1" then
  1528. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1529. Mesh = Thing[1].Mesh
  1530. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1531. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1532. else
  1533. if Thing[2] == "Block2" then
  1534. Thing[1].CFrame = Thing[1].CFrame
  1535. Mesh = Thing[7]
  1536. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1538. else
  1539. if Thing[2] == "Cylinder" then
  1540. Mesh = Thing[1].Mesh
  1541. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543. else
  1544. if Thing[2] == "Blood" then
  1545. Mesh = Thing[7]
  1546. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1547. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1548. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1549. else
  1550. if Thing[2] == "Elec" then
  1551. Mesh = Thing[1].Mesh
  1552. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1553. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1554. else
  1555. if Thing[2] == "Disappear" then
  1556. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1557. else
  1558. if Thing[2] == "Shatter" then
  1559. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1560. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1561. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1562. Thing[6] = Thing[6] + Thing[5]
  1563. end
  1564. end
  1565. end
  1566. end
  1567. end
  1568. end
  1569. end
  1570. else
  1571. Part.Parent = nil
  1572. table.remove(Effects, e)
  1573. end
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579. --end
  1580. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement