Advertisement
wowzers

ice rifle

Jun 26th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 68.36 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(4,.8,.6))
  289. GuhnWeld = CreateWeld(m, Handle, Guhn, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1, 0, -.4, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  290. Barrel = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Barrel", Vector3.new(0.200000003, 0.290000021, 0.420000017))
  291. BarrelWeld = CreateWeld(m, Guhn, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2,0,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.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.00000003, 0.3))
  294. Part2 = CreateWeld(m, Guhn, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.09000206, .5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  295. Part3 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, .800000003, 0.3))
  296. Part3 = CreateWeld(m, Guhn, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-.509000206, -0.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  297. Part4 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, .800000003, 0.3))
  298. Part4 = CreateWeld(m, Guhn, Part4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-.909000206, -0.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  299. Part5 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, .800000003, 0.3))
  300. Part5 = CreateWeld(m, Guhn, Part5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.29000206, -0.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  301. Hitbox = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(4,.8,.6))
  302. HitboxWeld = CreateWeld(m, Guhn, Hitbox, 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))
  303.  
  304.  
  305.  
  306. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  307.  
  308. if hit.Parent == nil then
  309. return
  310. end
  311. local h = hit.Parent:FindFirstChild("Humanoid")
  312. for _,v in pairs(hit.Parent:children()) do
  313. if v:IsA("Humanoid") then
  314. h = v
  315. end
  316. end
  317. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  318. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  319. return
  320. end
  321. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  322. game:GetService("Debris"):AddItem(c, 0.5)
  323. if HitSound ~= nil and HitPitch ~= nil then
  324. CreateSound(HitSound, hit, 1, HitPitch)
  325. end
  326. local Damage = math.random(minim, maxim)
  327. local blocked = false
  328. local block = hit.Parent:findFirstChild("Block")
  329. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  330. blocked = true
  331. block.Value = block.Value - 1
  332. print(block.Value)
  333. end
  334. if blocked == false then
  335. HitHealth = h.Health
  336. h.Health = h.Health - Damage
  337. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Hologram" then
  338. print("gained spree")
  339. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
  340. end
  341. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 then
  342. print("gained kill")
  343. Player.PlayerGui.Kills.Value = Player.PlayerGui.Kills.Value + 1
  344. end
  345. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  346. else
  347. h.Health = h.Health - Damage / 2
  348. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  349. end
  350. if Type == "Knockdown" then
  351. local hum = hit.Parent.Humanoid
  352. hum.PlatformStand = true
  353. coroutine.resume(coroutine.create(function(HHumanoid)
  354.  
  355. swait(1)
  356. HHumanoid.PlatformStand = false
  357. end
  358. ), hum)
  359. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  360. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  361. 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})
  362. game:GetService("Debris"):AddItem(bodvol, 0.5)
  363. game:GetService("Debris"):AddItem(rl, 0.5)
  364. elseif Type == "Normal" then
  365. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  366. if knockback > 0 then
  367. vp.Parent = hit.Parent.Torso
  368. end
  369. game:GetService("Debris"):AddItem(vp, 0.5)
  370. elseif Type == "Up" then
  371. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  372. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  373. elseif Type == "DarkUp" then
  374. coroutine.resume(coroutine.create(function()
  375.  
  376. for i = 0, 1, 0.1 do
  377. swait()
  378. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  379. end
  380. end
  381. ))
  382. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  383. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  384. elseif Type == "Snare" then
  385. 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})
  386. game:GetService("Debris"):AddItem(bp, 0.5)
  387. elseif Type == "Freeze" then
  388. 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})
  389. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  390. hit.Parent.Torso.Anchored = true
  391. coroutine.resume(coroutine.create(function(Part)
  392.  
  393. swait(1.5)
  394. Part.Anchored = false
  395. end
  396. ), hit.Parent.Torso)
  397. game:GetService("Debris"):AddItem(BodPos, 3)
  398. game:GetService("Debris"):AddItem(BodGy, 3)
  399.  
  400.  
  401. end
  402. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  403. game:GetService("Debris"):AddItem(debounce, Delay)
  404. c = Instance.new("ObjectValue")
  405. c.Name = "creator"
  406. c.Value = Player
  407. c.Parent = h
  408. game:GetService("Debris"):AddItem(c, 0.5)
  409. end
  410. end
  411.  
  412. ShowDamage = function(Pos, Text, Time, Color)
  413.  
  414. local Rate = 0.033333333333333
  415. if not Pos then
  416. local Pos = Vector3.new(0, 0, 0)
  417. end
  418. local Text = Text or ""
  419. local Time = Time or 2
  420. if not Color then
  421. local Color = Color3.new(1, 0, 1)
  422. end
  423. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  424. EffectPart.Anchored = true
  425. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  426. 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})
  427. game.Debris:AddItem(EffectPart, Time + 0.1)
  428. EffectPart.Parent = game:GetService("Workspace")
  429. delay(0, function()
  430.  
  431. local Frames = Time / Rate
  432. for Frame = 1, Frames do
  433. wait(Rate)
  434. local Percent = Frame / Frames
  435. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  436. TextLabel.TextTransparency = Percent
  437. end
  438. if EffectPart and EffectPart.Parent then
  439. EffectPart:Destroy()
  440. end
  441. end
  442. )
  443. end
  444.  
  445. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  446.  
  447. for _,c in pairs(workspace:children()) do
  448. local hum = c:findFirstChild("Humanoid")
  449. if hum ~= nil then
  450. local head = c:findFirstChild("Torso")
  451. if head ~= nil then
  452. local targ = head.Position - Part.Position
  453. local mag = targ.magnitude
  454. if mag <= magni and c.Name ~= Player.Name then
  455. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  456. end
  457. end
  458. end
  459. end
  460. end
  461.  
  462. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  463.  
  464. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  465. prt.Anchored = true
  466. prt.CFrame = cframe
  467. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  468. game:GetService("Debris"):AddItem(prt, 10)
  469. if Type == 1 or Type == nil then
  470. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  471. else
  472. if Type == 2 then
  473. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  474. end
  475. end
  476. end
  477.  
  478. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  479.  
  480. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  481. prt.Anchored = true
  482. prt.CFrame = cframe
  483. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  484. game:GetService("Debris"):AddItem(prt, 10)
  485. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  486. end
  487.  
  488. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  489.  
  490. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  491. prt.Anchored = true
  492. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  493. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  494. game:GetService("Debris"):AddItem(prt, 10)
  495. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  496. end
  497.  
  498. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  499.  
  500. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  501. prt.Anchored = true
  502. prt.CFrame = cframe
  503. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  504. game:GetService("Debris"):AddItem(prt, 10)
  505. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  506. end
  507.  
  508. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  509.  
  510. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  511. prt.Anchored = true
  512. prt.CFrame = cframe
  513. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  514. game:GetService("Debris"):AddItem(prt, 10)
  515. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  516. end
  517.  
  518. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  519.  
  520. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  521. prt.Anchored = true
  522. prt.CFrame = cframe
  523. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  524. game:GetService("Debris"):AddItem(prt, 10)
  525. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  526. end
  527.  
  528. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  529.  
  530. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  531. prt.Anchored = true
  532. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  533. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  534. local num = math.random(10, 50) / 1000
  535. game:GetService("Debris"):AddItem(prt, 10)
  536. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  537. end
  538.  
  539. CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  540.  
  541. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  542. prt.Anchored = true
  543. prt.CFrame = cframe
  544. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  545. game:GetService("Debris"):AddItem(prt, 10)
  546. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  547. end
  548.  
  549. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  550.  
  551. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  552. prt.Anchored = true
  553. prt.CFrame = cframe
  554. prt.Material = "Neon"
  555. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  556. game:GetService("Debris"):AddItem(prt, 10)
  557. coroutine.resume(coroutine.create(function(Part, Mesh)
  558.  
  559. for i = 0, 1, delay do
  560. swait()
  561. Part.Transparency = i
  562. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  563. end
  564. Part.Parent = nil
  565. end
  566. ), prt, msh)
  567. end
  568.  
  569. shoottraildd = function(mouse, partt, SpreadAmount, multiply, Type)
  570.  
  571. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  572. local MainPos = partt.Position
  573. local MainPos2 = mouse.Hit.p + SpreadVectors
  574. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  575. local speed = 10
  576. local num = 50
  577. coroutine.resume(coroutine.create(function()
  578.  
  579. repeat
  580. swait()
  581. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  582. local mag = (MainPos - pos).magnitude
  583. if Type == "Explosive" then
  584. 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)
  585. else
  586. if Type == "Poison" then
  587. 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)
  588. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  589. else
  590. if Type == "Stun" then
  591. 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)
  592. end
  593. end
  594. end
  595. MainPos = MainPos + MouseLook.lookVector * speed
  596. num = num - 1
  597. MouseLook = MouseLook * angles(math.random(.4,.6), 0, 0)
  598. if hit ~= nil then
  599. num = 0
  600. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  601. refpart.Anchored = true
  602. refpart.CFrame = CFrame.new(pos)
  603. game:GetService("Debris"):AddItem(refpart, 2)
  604. end
  605. do
  606. if num <= 1 then
  607. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  608. refpart.Anchored = true
  609. refpart.CFrame = CFrame.new(pos)
  610. if Type == "Explosive" then
  611. for i = 0, 70, 5 do
  612. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  613. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05)
  614. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  615. MagniDamage(refpart, 5, 1 * multiply, 3 * multiply, 0, "Freeze")
  616. swait(10)
  617. end
  618. else
  619. if Type == "Poison" then
  620. if hit.Name == "memes" then
  621. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  622. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  623. else
  624. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  625. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  626. for i = 0,100,5 do
  627. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth-1
  628. hit.Parent.Humanoid.WalkSpeed = 5
  629. swait(2.5)
  630. hit.Parent.Humanoid.WalkSpeed = 16
  631. end
  632. end
  633. else
  634. if Type == "Stun" then
  635. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  636. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  637. for i = 0,100,5 do
  638. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health+2
  639. hit.Parent.Humanoid.WalkSpeed = 16
  640. swait(.5)
  641. end
  642. end
  643. end
  644. end
  645. end
  646. game:GetService("Debris"):AddItem(refpart, 0)
  647. end
  648. until num <= 0
  649. end
  650. ))
  651. end
  652.  
  653. shoottraildd2 = function(mouse, partt, SpreadAmount, multiply, Type)
  654.  
  655. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  656. local MainPos = partt.Position
  657. local MainPos2 = mouse.Hit.p + SpreadVectors
  658. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  659. local speed = 10
  660. local num = 50
  661. coroutine.resume(coroutine.create(function()
  662.  
  663. repeat
  664. swait()
  665. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  666. local mag = (MainPos - pos).magnitude
  667. if Type == "Explosive" then
  668. 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)
  669. else
  670. if Type == "Poison" then
  671. 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)
  672. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  673. else
  674. if Type == "Stun" then
  675. 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)
  676. end
  677. end
  678. end
  679. MainPos = MainPos + MouseLook.lookVector * speed
  680. num = num - 1
  681. MouseLook = MouseLook * angles(math.rad(-.2), 0, 0)
  682. if hit ~= nil then
  683. num = 0
  684. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  685. refpart.Anchored = true
  686. refpart.CFrame = CFrame.new(pos)
  687. game:GetService("Debris"):AddItem(refpart, 2)
  688. end
  689. do
  690. if num <= 1 then
  691. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  692. refpart.Anchored = true
  693. refpart.CFrame = CFrame.new(pos)
  694. if Type == "Explosive" then
  695. for i = 0, 70, 5 do
  696. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  697. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05)
  698. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  699. MagniDamage(refpart, 5, 1 * multiply, 3 * multiply, 0, "Freeze")
  700. swait(10)
  701. end
  702. else
  703. if Type == "Poison" then
  704. if hit.Name == "memes" then
  705. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  706. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  707. else
  708. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  709. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  710. for i = 0, 3, 4 do
  711. SphereEffect(BrickColor.new("Bright violet"), hit.Parent.Torso.CFrame, 1, 1, 1, 1, 1, 1, 0.07 )
  712. for i = 0,20,1 do
  713. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth/1.01
  714. hit.Parent.Humanoid.WalkSpeed = 5
  715. swait(2.5)
  716. hit.Parent.Humanoid.WalkSpeed = 16
  717. end
  718. end
  719. end
  720. else
  721. if Type == "Stun" then
  722. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  723. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  724. for i = 0,100,5 do
  725. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth*10
  726. swait(5)
  727. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.MaxHealth
  728. hit.Parent.Humanoid.WalkSpeed = 64
  729. swait(60)
  730. hit.Parent.Humanoid.MaxHealth = 100
  731. hit.Parent.Humanoid.WalkSpeed=16
  732. end
  733. end
  734. end
  735. end
  736. end
  737. game:GetService("Debris"):AddItem(refpart, 0)
  738. end
  739. until num <= 0
  740. end
  741. ))
  742. end
  743.  
  744. shoottrail1 = function(mouse, partt, SpreadAmount, multiply)
  745.  
  746. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  747. local MainPos = partt.Position
  748. local MainPos2 = mouse.Hit.p + SpreadVectors
  749. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  750. local speed = 15.0
  751. local num = 200
  752. CreateSound("rbxassetid://256172142", partt, 1, 1)
  753. coroutine.resume(coroutine.create(function()
  754.  
  755. repeat
  756. swait()
  757. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  758. local mag = (MainPos - pos).magnitude
  759. 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)
  760. MainPos = MainPos + MouseLook.lookVector * speed
  761. num = num - 1
  762. MouseLook = MouseLook * angles(0,-.02, 0)
  763. if hit ~= nil then
  764. num = 0
  765. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  766. refpart.Anchored = true
  767. refpart.CFrame = CFrame.new(pos)
  768. game:GetService("Debris"):AddItem(refpart, 2)
  769. end
  770. do
  771. if num <= 0 then
  772. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  773. refpart.Anchored = true
  774. refpart.CFrame = CFrame.new(pos)
  775. if hit ~= nil then
  776. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  777. end
  778. game:GetService("Debris"):AddItem(refpart, 0)
  779. end
  780. end
  781. until num <= 0
  782. end
  783. ))
  784. end
  785. shoottrail2 = function(mouse, partt, SpreadAmount, multiply)
  786.  
  787. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  788. local MainPos = partt.Position
  789. local MainPos2 = mouse.Hit.p + SpreadVectors
  790. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  791. local speed = 15.0
  792. local num = 200
  793. CreateSound("rbxassetid://256172142", partt, 1, 1)
  794. coroutine.resume(coroutine.create(function()
  795.  
  796. repeat
  797. swait()
  798. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  799. local mag = (MainPos - pos).magnitude
  800. 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)
  801. MainPos = MainPos + MouseLook.lookVector * speed
  802. num = num - 1
  803. MouseLook = MouseLook * angles(0,.02, 0)
  804. if hit ~= nil then
  805. num = 0
  806. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  807. refpart.Anchored = true
  808. refpart.CFrame = CFrame.new(pos)
  809. game:GetService("Debris"):AddItem(refpart, 2)
  810. end
  811. do
  812. if num <= 0 then
  813. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  814. refpart.Anchored = true
  815. refpart.CFrame = CFrame.new(pos)
  816. if hit ~= nil then
  817. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  818. end
  819. game:GetService("Debris"):AddItem(refpart, 0)
  820. end
  821. end
  822. until num <= 0
  823. end
  824. ))
  825. end
  826.  
  827. shoottrail3 = function(mouse, partt, SpreadAmount, multiply)
  828.  
  829. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  830. local MainPos = partt.Position
  831. local MainPos2 = mouse.Hit.p + SpreadVectors
  832. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  833. local speed = 15.0
  834. local num = 200
  835. CreateSound("rbxassetid://256172142", partt, 1, 1)
  836. coroutine.resume(coroutine.create(function()
  837.  
  838. repeat
  839. swait()
  840. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  841. local mag = (MainPos - pos).magnitude
  842. 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)
  843. MainPos = MainPos + MouseLook.lookVector * speed
  844. num = num - 1
  845. MouseLook = MouseLook * angles(0,0, 0)
  846. if hit ~= nil then
  847. num = 0
  848. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  849. refpart.Anchored = true
  850. refpart.CFrame = CFrame.new(pos)
  851. game:GetService("Debris"):AddItem(refpart, 2)
  852. end
  853. do
  854. if num <= 0 then
  855. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  856. refpart.Anchored = true
  857. refpart.CFrame = CFrame.new(pos)
  858. if hit ~= nil then
  859. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  860. end
  861. game:GetService("Debris"):AddItem(refpart, 0)
  862. end
  863. end
  864. until num <= 0
  865. end
  866. ))
  867. end
  868.  
  869. shoottrail4 = function(mouse, partt, SpreadAmount, multiply)
  870.  
  871. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  872. local MainPos = partt.Position
  873. local MainPos2 = mouse.Hit.p + SpreadVectors
  874. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  875. local speed = 15.0
  876. local num = 200
  877. CreateSound("rbxassetid://256172142", partt, 1, 1)
  878. coroutine.resume(coroutine.create(function()
  879.  
  880. repeat
  881. swait()
  882. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  883. local mag = (MainPos - pos).magnitude
  884. 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)
  885. MainPos = MainPos + MouseLook.lookVector * speed
  886. num = num - 1
  887. MouseLook = MouseLook * angles(math.rad(2), math.rad(2), math.rad(2))
  888. if hit ~= nil then
  889. num = 0
  890. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  891. refpart.Anchored = true
  892. refpart.CFrame = CFrame.new(pos)
  893. game:GetService("Debris"):AddItem(refpart, 2)
  894. end
  895. do
  896. if num <= 0 then
  897. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  898. refpart.Anchored = true
  899. refpart.CFrame = CFrame.new(pos)
  900. if hit ~= nil then
  901. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  902. end
  903. game:GetService("Debris"):AddItem(refpart, 0)
  904. end
  905. end
  906. until num <= 0
  907. end
  908. ))
  909. end
  910.  
  911. shoottrailOmega = function(mouse, partt, SpreadAmount, multiply)
  912.  
  913. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  914. local MainPos = partt.Position
  915. local MainPos2 = mouse.Hit.p + SpreadVectors
  916. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  917. local speed = 15.0
  918. local num = 20
  919. CreateSound("rbxassetid://256172142", partt, 1, 1)
  920. coroutine.resume(coroutine.create(function()
  921.  
  922. repeat
  923. swait()
  924. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  925. local mag = (MainPos - pos).magnitude
  926. 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)
  927. MainPos = MainPos + MouseLook.lookVector * speed
  928. num = num - 1
  929. MouseLook = MouseLook * angles(0, math.random(-2,2), 0)
  930. if hit ~= nil then
  931. num = 0
  932. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  933. refpart.Anchored = true
  934. refpart.CFrame = CFrame.new(pos)
  935. game:GetService("Debris"):AddItem(refpart, 2)
  936. end
  937. do
  938. if num <= 0 then
  939. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  940. refpart.Anchored = true
  941. refpart.CFrame = CFrame.new(pos)
  942. if hit ~= nil then
  943. MagniDamage(refpart, 5, -30 * multiply, -10 * multiply, 0, "Normal")
  944. end
  945. game:GetService("Debris"):AddItem(refpart, 0)
  946. end
  947. end
  948. until num <= 0
  949. end
  950. ))
  951. end
  952.  
  953. attackone = function()
  954.  
  955. attack = true
  956. local con = Hitbox.Touched:connect(function(hit)
  957.  
  958. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  959. end
  960. )
  961. for i = 0, 1, 0.2 do
  962. swait()
  963. 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)
  964. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-40)), 0.3)
  965. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  966. 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)
  967. 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)
  968. 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)
  969. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  970. end
  971. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  972. for i = 0, 1, 0.1 do
  973. swait()
  974. 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)
  975. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  976. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  977. 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)
  978. 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)
  979. 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)
  980. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  981. end
  982. con:disconnect()
  983. attack = false
  984. end
  985.  
  986. attacktwo = function()
  987.  
  988. attack = true
  989. local con = Hitbox.Touched:connect(function(hit)
  990.  
  991. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  992. end
  993. )
  994. for i = 0, 1, 0.2 do
  995. swait()
  996. 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)
  997. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  998. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  999. 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)
  1000. 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)
  1001. 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)
  1002. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1003. end
  1004. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.8)
  1005. for i = 0, 1, 0.1 do
  1006. swait()
  1007. 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)
  1008. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1009. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1010. 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)
  1011. 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)
  1012. 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)
  1013. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1014. end
  1015. con:disconnect()
  1016. attack = false
  1017. end
  1018.  
  1019. attackthree = function()
  1020. attack = true
  1021. MagniDamage(Barrel, 0, 0, 0, 0, "Normal")
  1022. shoottrail1(mouse, Barrel, 0, 0.7)
  1023. shoottrail2(mouse, Barrel, 0, 0.7)
  1024. shoottrail3(mouse, Barrel, 0, 0.7)
  1025. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1026. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.07)
  1027. swait(30)
  1028. attack = false
  1029. end
  1030.  
  1031. yatata = function()
  1032. for i = 0,100,5 do
  1033. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1034. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1035. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1036. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1037. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1038. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1039. swait(2.5)
  1040. end
  1041. end
  1042.  
  1043. yatatatest = function()
  1044.  
  1045. attack = true
  1046. local con = Hitbox.Touched:connect(function(hit)
  1047.  
  1048. Damagefunc(Hitbox, hit, -15, -10, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1049. end
  1050. )
  1051. for i = 0, 1, 0.2 do
  1052. swait()
  1053. 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)
  1054. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1055. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1056. 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)
  1057. 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)
  1058. 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)
  1059. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1060. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1061. end
  1062. for i = 1, 5 do
  1063. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1064. for i = 0, 1, 0.2 do
  1065. swait()
  1066. 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)
  1067. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1068. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1069. 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)
  1070. 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)
  1071. 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)
  1072. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1073. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1074. end
  1075. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1076. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  1077. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1078. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1079. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1080. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1081. for i = 0, 1, 0.2 do
  1082. swait()
  1083. 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)
  1084. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1085. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1086. 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)
  1087. 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)
  1088. 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)
  1089. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1090. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1091. end
  1092. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1093. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1094. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1095. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1096. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1097. for i = 0, 1, 0.2 do
  1098. swait()
  1099. 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)
  1100. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1101. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1102. 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)
  1103. 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)
  1104. 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)
  1105. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1106. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1107. end
  1108. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1109. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.9)
  1110. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1111. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1112. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1113. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1114. for i = 0, 1, 0.2 do
  1115. swait()
  1116. 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)
  1117. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1118. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1119. 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)
  1120. 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)
  1121. 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)
  1122. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1123. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1124. end
  1125. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1126. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1127. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1128. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1129. BlockEffect(BrickColor.new("Pastel Blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1130. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1131. end
  1132. con:disconnect()
  1133. attack = false
  1134. end
  1135.  
  1136. Grenade = function()
  1137.  
  1138. attack = true
  1139. CreateSound("http://www.roblox.com/asset/?id=134626404", Barrel, 1, 1.6)
  1140. shoottraildd(mouse, Barrel, 0, 1, "Poison")
  1141. BlockEffect(BrickColor.new("Alder"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1142. BlockEffect(BrickColor.new("Alder"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1143. BlockEffect(BrickColor.new("Royal purple"), Barrel.CFrame, 5, 5, 5, 14,1,1, 0.07)
  1144. Humanoid.AutoRotate = true
  1145. attack = false
  1146. end
  1147.  
  1148. Grenade2 = function()
  1149. attack = true
  1150. CreateSound("rbxassetid://260421433", Guhn, 1, 1.6)
  1151. shoottraildd(mouse, Barrel, 0, 1, "Stun")
  1152. BlockEffect(BrickColor.new("Shamrock"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1153. BlockEffect(BrickColor.new("Shamrock"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1154. BlockEffect(BrickColor.new("Lime green"), 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 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1489. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(10), math.rad(90)), 0.3)
  1490. 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)
  1491. 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)
  1492. 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)
  1493. 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)
  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 2 < 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(30), 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)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 - 50 * math.cos((sine) / 3))), 0.3)
  1504. 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(0 - 50 * math.cos((sine) / 3))), 0.3)
  1505. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1506. 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)
  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