klops

back

Oct 28th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.32 KB | None | 0 0
  1. wait(0.016666666666667)
  2. Effects = {}
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local Humanoid = Character.Humanoid
  6. local mouse = Player:GetMouse()
  7. local m = Instance.new("Model", Character)
  8. m.Name = "WeaponModel"
  9. local effect = Instance.new("Model", Character)
  10. effect.Name = "Effects"
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local cam = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local equipped = false
  21. local attack = false
  22. local Anim = "Idle"
  23. local idle = 0
  24. local attacktype = 1
  25. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  26. local velocity = RootPart.Velocity.y
  27. local sine = 0
  28. local change = 1
  29. local mana = 0
  30. local it = Instance.new
  31. vt = Vector3.new
  32. local grabbed = false
  33. local cf = CFrame.new
  34. local mr = math.rad
  35. local angles = CFrame.Angles
  36. local ud = UDim2.new
  37. local c3 = Color3.new
  38. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  39. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  40. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  41. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  42. RSH = nil
  43. RW = Instance.new("Weld")
  44. LW = Instance.new("Weld")
  45. RH = Torso["Right Hip"]
  46. LH = Torso["Left Hip"]
  47. RSH = Torso["Right Shoulder"]
  48. LSH = Torso["Left Shoulder"]
  49. RSH.Parent = nil
  50. LSH.Parent = nil
  51. RW.Name = "RW"
  52. RW.Part0 = Torso
  53. RW.C0 = cf(1.5, 0.5, 0)
  54. RW.C1 = cf(0, 0.5, 0)
  55. RW.Part1 = RightArm
  56. RW.Parent = Torso
  57. LW.Name = "LW"
  58. LW.Part0 = Torso
  59. LW.C0 = cf(-1.5, 0.5, 0)
  60. LW.C1 = cf(0, 0.5, 0)
  61. LW.Part1 = LeftArm
  62. LW.Parent = Torso
  63. clerp = function(a, b, t)
  64. return a:lerp(b, t)
  65. end
  66.  
  67. local RbxUtility = LoadLibrary("RbxUtility")
  68. local Create = RbxUtility.Create
  69. RemoveOutlines = function(part)
  70. part.TopSurface = 10
  71. end
  72.  
  73. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  74. 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})
  75. RemoveOutlines(Part)
  76. return Part
  77. end
  78.  
  79. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  80. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  81. if Mesh == "SpecialMesh" then
  82. Msh.MeshType = MeshType
  83. Msh.MeshId = MeshId
  84. end
  85. return Msh
  86. end
  87.  
  88. local co1 = 10
  89. local co2 = 30
  90. local co3 = 30
  91. local co4 = 60
  92. local cooco = 3
  93. local cooldown1 = 0
  94. local cooldown2 = 0
  95. local cooldown3 = 0
  96. local cooldown4 = 0
  97. local coolcool = 0
  98. local maxEnergy = 100
  99. local Energy = 0
  100. local skill1stam = 10
  101. local skill2stam = 50
  102. local skill3stam = 60
  103. local skill4stam = 100
  104. local skill5stam = 100
  105. local recovermana = 5
  106. local skillcolorscheme = BrickColor.new("Really black").Color
  107. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  108. makeframe = function(par, trans, pos, size, color)
  109. local frame = Instance.new("Frame", par)
  110. frame.BackgroundTransparency = trans
  111. frame.BorderSizePixel = 0
  112. frame.Position = pos
  113. frame.Size = size
  114. frame.BackgroundColor3 = color
  115. return frame
  116. end
  117.  
  118. makelabel = function(par, text)
  119. local label = Instance.new("TextLabel", par)
  120. label.BackgroundTransparency = 1
  121. label.Size = UDim2.new(1, 0, 1, 0)
  122. label.Position = UDim2.new(0, 0, 0, 0)
  123. label.TextColor3 = Color3.new(255, 255, 255)
  124. label.TextStrokeTransparency = 0
  125. label.FontSize = Enum.FontSize.Size32
  126. label.Font = Enum.Font.SourceSansBold
  127. label.BorderSizePixel = 0
  128. label.TextScaled = true
  129. label.Text = text
  130. end
  131.  
  132. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.93, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  133. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.86, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  134. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.79, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  135. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.72, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  136. framesk5 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.6, 0), UDim2.new(0.16, 0, 0.06, 0), skillcolorscheme)
  137. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  138. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  139. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  140. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  141. bar5 = makeframe(framesk5, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  142. text1 = makelabel(framesk1, "[Z] Hello!")
  143. text2 = makelabel(framesk2, "[X] Cake")
  144. text3 = makelabel(framesk3, "[C] Confetti")
  145. text4 = makelabel(framesk4, "[V] ZOOP")
  146. text5 = Instance.new("TextLabel", framesk5)
  147. text5.BackgroundTransparency = 1
  148. text5.Size = UDim2.new(1, 0, 1, 0)
  149. text5.Position = UDim2.new(0, 0, 0, 0)
  150. text5.TextColor3 = Color3.new(255, 255, 255)
  151. text5.TextStrokeTransparency = 0
  152. text5.FontSize = Enum.FontSize.Size32
  153. text5.Font = Enum.Font.SourceSansBold
  154. text5.BorderSizePixel = 0
  155. text5.TextScaled = true
  156. text5.Text = "[F] Aim]"
  157. ArtificialHB = Instance.new("BindableEvent", script)
  158. ArtificialHB.Name = "Heartbeat"
  159. script:WaitForChild("Heartbeat")
  160. frame = 0.033333333333333
  161. tf = 0
  162. allowframeloss = false
  163. tossremainder = false
  164. lastframe = tick()
  165. script.Heartbeat:Fire()
  166. game:GetService("RunService").Heartbeat:connect(function(s, p)
  167. tf = tf + s
  168. if frame <= tf then
  169. if allowframeloss then
  170. script.Heartbeat:Fire()
  171. lastframe = tick()
  172. else
  173. for i = 1, math.floor(tf / frame) do
  174. script.Heartbeat:Fire()
  175. end
  176. lastframe = tick()
  177. end
  178. if tossremainder then
  179. tf = 0
  180. else
  181. tf = tf - frame * math.floor(tf / frame)
  182. end
  183. end
  184. end
  185. )
  186. swait = function(num)
  187. if num == 0 or num == nil then
  188. ArtificialHB.Event:wait()
  189. else
  190. for i = 0, num do
  191. ArtificialHB.Event:wait()
  192. end
  193. end
  194. end
  195.  
  196. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  197. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  198. return Weld
  199. end
  200.  
  201. rayCast = function(Position, Direction, Range, Ignore)
  202. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  203. end
  204.  
  205. CreateSound = function(id, par, vol, pit)
  206. coroutine.resume(coroutine.create(function()
  207. local sou = Instance.new("Sound", par or workspace)
  208. sou.Volume = vol
  209. sou.Pitch = pit or 1
  210. sou.SoundId = id
  211. swait()
  212. sou:play()
  213. game:GetService("Debris"):AddItem(sou, 6)
  214. end
  215. ))
  216. end
  217.  
  218. local getclosest = function(obj, distance)
  219. local last, lastx = distance + 1, nil
  220. for i,v in pairs(workspace:GetChildren()) do
  221. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  222. local t = v.Torso
  223. local dist = t.Position - obj.Position.magnitude
  224. if dist <= distance and dist < last then
  225. last = dist
  226. lastx = v
  227. end
  228. end
  229. end
  230. return lastx
  231. end
  232.  
  233. makeconfetti = function(place)
  234. local cp = Instance.new("Part")
  235. cp.Name = "Effect"
  236. cp.FormFactor = "Custom"
  237. cp.Size = Vector3.new(0, 0, 0)
  238. cp.CanCollide = false
  239. cp.Transparency = 1
  240. cp.CFrame = place.CFrame
  241. cp.Velocity = Vector3.new(math.random() - 0.5, math.random(), math.random() - 0.5).unit * 20
  242. delay(0.25 + math.random() * 0.2, function()
  243. if cp ~= nil then
  244. cp.Velocity = cp.Velocity * 0.1
  245. wait(0.5)
  246. end
  247. if cp ~= nil then
  248. cp.Velocity = Vector3.new(0, -1, 0)
  249. wait(1)
  250. end
  251. if cp ~= nil then
  252. cp.Velocity = Vector3.new(0, -2, 0)
  253. end
  254. end
  255. )
  256. local cbbg = Instance.new("BillboardGui")
  257. cbbg.Adornee = cp
  258. cbbg.Size = UDim2.new(7, 0, 4, 0)
  259. local cil = Instance.new("ImageLabel")
  260. cil.BackgroundTransparency = 1
  261. cil.BorderSizePixel = 0
  262. cil.Size = UDim2.new(1, 0, 1, 0)
  263. cil.Image = "http://www.roblox.com/asset/?id=104606998"
  264. cil.Parent = cbbg
  265. cbbg.Parent = cp
  266. local bf = Instance.new("BodyForce")
  267. bf.force = Vector3.new(0, cp:GetMass() * 196.2, 0)
  268. bf.Parent = cp
  269. game.Debris:AddItem(cp, 7 + math.random())
  270. cp.Parent = game.Workspace
  271. end
  272.  
  273. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  274. if hit.Parent == nil then
  275. return
  276. end
  277. local h = hit.Parent:FindFirstChild("Humanoid")
  278. for _,v in pairs(hit.Parent:children()) do
  279. if v:IsA("Humanoid") then
  280. h = v
  281. end
  282. end
  283. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  284. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  285. return
  286. end
  287. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  288. game:GetService("Debris"):AddItem(c, 0.5)
  289. if HitSound ~= nil and HitPitch ~= nil then
  290. CreateSound(HitSound, hit, 1, HitPitch)
  291. end
  292. local Damage = math.random(minim, maxim)
  293. local blocked = false
  294. local block = hit.Parent:findFirstChild("Block")
  295. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  296. blocked = true
  297. block.Value = block.Value - 1
  298. print(block.Value)
  299. end
  300. if blocked == false then
  301. h.Health = h.Health - Damage
  302. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  303. else
  304. h.Health = h.Health - Damage / 2
  305. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  306. end
  307. if Type == "Knockdown" then
  308. local hum = hit.Parent.Humanoid
  309. hum.PlatformStand = true
  310. coroutine.resume(coroutine.create(function(HHumanoid)
  311. swait(1)
  312. HHumanoid.PlatformStand = false
  313. end
  314. ), hum)
  315. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  316. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  317. 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})
  318. game:GetService("Debris"):AddItem(bodvol, 0.5)
  319. game:GetService("Debris"):AddItem(rl, 0.5)
  320. else
  321. do
  322. if Type == "Normal" then
  323. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  324. if knockback > 0 then
  325. vp.Parent = hit.Parent.Torso
  326. end
  327. game:GetService("Debris"):AddItem(vp, 0.5)
  328. else
  329. do
  330. if Type == "Up" then
  331. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  332. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  333. else
  334. do
  335. if Type == "DarkUp" then
  336. coroutine.resume(coroutine.create(function()
  337. for i = 0, 1, 0.1 do
  338. swait()
  339. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  340. end
  341. end
  342. ))
  343. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  344. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  345. else
  346. do
  347. if Type == "Snare" then
  348. 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})
  349. game:GetService("Debris"):AddItem(bp, 1)
  350. else
  351. do
  352. if Type == "Freeze" then
  353. 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})
  354. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  355. hit.Parent.Torso.Anchored = true
  356. coroutine.resume(coroutine.create(function(Part)
  357. swait(1.5)
  358. Part.Anchored = false
  359. end
  360. ), hit.Parent.Torso)
  361. game:GetService("Debris"):AddItem(BodPos, 3)
  362. game:GetService("Debris"):AddItem(BodGy, 3)
  363. end
  364. do
  365. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  366. game:GetService("Debris"):AddItem(debounce, Delay)
  367. c = Instance.new("ObjectValue")
  368. c.Name = "creator"
  369. c.Value = Player
  370. c.Parent = h
  371. game:GetService("Debris"):AddItem(c, 0.5)
  372. end
  373. end
  374. end
  375. end
  376. end
  377. end
  378. end
  379. end
  380. end
  381. end
  382. end
  383. end
  384. end
  385.  
  386. ShowDamage = function(Pos, Text, Time, Color)
  387. local Rate = 0.033333333333333
  388. if not Pos then
  389. local Pos = Vector3.new(0, 0, 0)
  390. end
  391. local Text = Text or ""
  392. local Time = Time or 2
  393. if not Color then
  394. local Color = Color3.new(1, 0, 1)
  395. end
  396. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  397. EffectPart.Anchored = true
  398. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  399. 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})
  400. game.Debris:AddItem(EffectPart, Time + 0.1)
  401. EffectPart.Parent = game:GetService("Workspace")
  402. delay(0, function()
  403. local Frames = Time / Rate
  404. for Frame = 1, Frames do
  405. wait(Rate)
  406. local Percent = Frame / Frames
  407. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  408. TextLabel.TextTransparency = Percent
  409. end
  410. if EffectPart and EffectPart.Parent then
  411. EffectPart:Destroy()
  412. end
  413. end
  414. )
  415. end
  416.  
  417. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  418. for _,c in pairs(workspace:children()) do
  419. local hum = c:findFirstChild("Humanoid")
  420. if hum ~= nil then
  421. local head = c:findFirstChild("Torso")
  422. if head ~= nil then
  423. local targ = head.Position - Part.Position
  424. local mag = targ.magnitude
  425. if mag <= magni and c.Name ~= Player.Name then
  426. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  427. end
  428. end
  429. end
  430. end
  431. end
  432.  
  433. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Handle", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  434. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.318675995, -0.93935442, -0.100952148, -0.000336287718, -2.69723296e-005, -1.0000006, 0.000396225107, -1.0000006, 2.75748262e-005, -1.00000048, -0.00039631853, 0.000336177269))
  435. CreateMesh("SpecialMesh", Handle, Enum.MeshType.Cylinder, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  436. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  437. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000131, -7.35742219e-007, 1.21101039e-007, -7.35742219e-007, 1.00000131, 1.02765625e-007, 1.21101039e-007, 1.02765625e-007, 1.00000119))
  438. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  439. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1.19999993, 1.20000005))
  440. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.885063887, -0.850027084, 0.139083862, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  441. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  442. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000018, 0.919999897, 0.929999948))
  443. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.65007019, -1.12043953, 1.41934061, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  444. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.10000002, 1.10000002))
  445. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.600000024, 0.299999893, 0.300000012))
  446. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.685011983, -1.30000305, -0.310913086, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  447. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  448. Barrel = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Barrel", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  449. BarrelWeld = CreateWeld(m, Handle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.149612427, -0.839944839, -1.62507761, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  450. CreateMesh("SpecialMesh", Barrel, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.5, 0.5, 2))
  451. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  452. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15965271, -0.839952469, -1.31507254, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  453. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.10000002, 1.10000002, 2))
  454. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  455. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.47496772, -1.08996964, -0.560287476, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  456. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  457. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  458. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.159637451, -0.839942932, -1.66506422, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  459. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.29999995, 1.29999995, 2))
  460. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.300000012, 0.299999893, 0.300000012))
  461. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38499403, -1.29999924, -0.31072998, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  462. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  463. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  464. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315048695, -1.19999695, 0.139648438, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  465. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  466. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.400000006, 0.299999893, 0.300000012))
  467. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.09998894, 0.985217929, -0.310440063, -1.00000107, 3.09870593e-005, 0.000671288697, -3.00194297e-005, -1.00000107, -0.000640959595, 0.000671499758, -0.000640785322, 1.00000072))
  468. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  469. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  470. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315003157, -1.15942001, 0.391784668, -1.05658009e-005, -1.00000119, -0.000331618445, 0.866236687, -0.000175954381, 0.49963668, -0.499636561, -0.000281113171, 0.866236448))
  471. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  472. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  473. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.315113783, -1.3240509, -0.106765747, -3.80144447e-005, -1.00000119, -0.000286904746, 0.86581111, 0.000109338136, -0.500373363, 0.500373662, -0.000267956813, 0.86581111))
  474. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1, 1, 2))
  475. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1.23000002, 1.24000001, 1.20000005))
  476. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.144668579, -0.849945068, -0.335066319, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  477. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  478. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(0.300000012, 0.299999893, 0.300000012))
  479. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.985000253, -1.29999733, -0.310958862, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  480. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  481. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Royal purple", "Part", Vector3.new(2.21000004, 0.299999893, 0.300000012))
  482. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.12000227, -1.06999397, -0.380722046, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  483. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
  484. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(1, 0.789999902, 0.709999919))
  485. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.140090942, -1.10543823, 1.39955378, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  486. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1.04999995, 6, 2.29999995))
  487. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.220000029, 0.919999897, 0.929999948))
  488. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.459915161, -1.09041786, 1.47965384, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  489. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  490. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1.48000002, 0.819999933, 1.20000005))
  491. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.424940348, -0.660030365, 0.139541626, -2.97360093e-005, -1.00000131, -1.88207196e-005, 1.00000095, -3.11220283e-005, -0.000637698569, 0.000637928257, -1.86453399e-005, 1.00000095))
  492. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  493. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 0.789999902, 0.709999919))
  494. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.140090942, -1.10543823, 1.39955378, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  495. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 5, 2.5))
  496. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  497. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.41492677, -1.12001801, 0.6197052, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  498. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  499. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  500. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.4149673, -1.11997604, -0.360290527, -2.99031944e-005, -1.00000119, -0.000364157662, 1.00000119, -3.11631775e-005, -0.00037874296, 0.00037896217, -0.000363974337, 1.00000095))
  501. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.79999995, 1.79999995, 2))
  502. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Black", "Part", Vector3.new(0.299999952, 0.299999952, 0.49999997))
  503. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.15965271, -0.839946747, -1.48507142, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  504. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 1.20000005, 2))
  505. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000018, 0.919999897, 0.929999948))
  506. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.509918213, -1.09041595, 1.4796629, 0.000366366556, -0.000121983321, 1.00000107, 1.00000107, -0.000305830443, -0.000366173568, 0.000304477202, 1.00000131, 0.000122066587))
  507. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.10000002, 1.10000002))
  508. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.18999994, 1.11999989, 0.49999997))
  509. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154647827, -0.809949875, -1.31507277, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  510. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  511. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(1.13, 1.11999989, 0.49999997))
  512. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.1746521, -0.809955597, -1.38508785, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  513. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  514. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(1.18999994, 1.11999989, 0.49999997))
  515. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.154647827, -0.809947968, -1.45508766, 0.000366321998, -0.000366120541, 1.00000095, 1.00000119, -6.16857869e-005, -0.000366114022, 6.04219967e-005, 1.00000119, 0.000366293127))
  516. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  517. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(1, 1.19999993, 1.20000005))
  518. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.885063887, -0.850027084, 0.139083862, -2.97294828e-005, -1.00000131, -1.88043923e-005, 1.00000095, -3.11155127e-005, -0.00063769205, 0.000637921738, -1.86290417e-005, 1.00000095))
  519. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  520. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.700000048, 0.369999945, 0.280000091))
  521. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.349996567, -0.606202126, 0, 0.866040528, 0.499982536, 0.000292716955, -0.499987632, 0.866041303, 0.000282988942, -0.000108518783, -0.000385537889, 1.00000477))
  522. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.5))
  523. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.220000058, 0.619999945, 0.710000098))
  524. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.290046692, -0.834992409, 0.184677124, 1.00000131, -7.35742219e-007, 1.21101039e-007, -7.35742219e-007, 1.00000131, 1.02765625e-007, 1.21101039e-007, 1.02765625e-007, 1.00000119))
  525. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  526. Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(2.1500001, 0.819999933, 0.780000031))
  527. PartWeld = CreateWeld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409978628, -0.559999466, 0.124420166, -2.96669386e-005, -1.00000143, 6.75041229e-005, 1.00000095, -3.1113872e-005, -0.000724008365, 0.000724240555, 6.76767959e-005, 1.00000083))
  528. CreateMesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  529. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  530. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  531. prt.Anchored = true
  532. prt.CFrame = cframe
  533. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  534. game:GetService("Debris"):AddItem(prt, 10)
  535. if Type == 1 or Type == nil then
  536. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  537. else
  538. if Type == 2 then
  539. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  540. end
  541. end
  542. end
  543.  
  544. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  545. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  546. prt.Anchored = true
  547. prt.CFrame = cframe
  548. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  549. game:GetService("Debris"):AddItem(prt, 10)
  550. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  551. end
  552.  
  553. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  554. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  555. prt.Anchored = true
  556. prt.CFrame = cframe
  557. msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  558. game:GetService("Debris"):AddItem(prt, 2)
  559. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  560. for i = 0, 1, delay do
  561. swait()
  562. Part.Transparency = i
  563. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  564. end
  565. Part.Parent = nil
  566. end
  567. ), prt, msh, (math.random(0, 1) + math.random()) / 5)
  568. end
  569.  
  570. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  571. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  572. prt.Anchored = true
  573. prt.CFrame = cframe
  574. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  575. game:GetService("Debris"):AddItem(prt, 10)
  576. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  577. end
  578.  
  579. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  580. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  581. prt.Anchored = true
  582. prt.CFrame = cframe
  583. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  584. game:GetService("Debris"):AddItem(prt, 10)
  585. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  586. end
  587.  
  588. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  589. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  590. prt.Anchored = true
  591. prt.CFrame = cframe
  592. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  593. game:GetService("Debris"):AddItem(prt, 10)
  594. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  595. end
  596.  
  597. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  598. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  599. prt.Anchored = true
  600. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  601. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602. local num = math.random(10, 50) / 1000
  603. game:GetService("Debris"):AddItem(prt, 10)
  604. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  605. end
  606.  
  607. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  608. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  609. prt.Anchored = true
  610. prt.CFrame = cframe
  611. msh = CreateMesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  612. game:GetService("Debris"):AddItem(prt, 5)
  613. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  614. end
  615.  
  616. MagniCamShake = function(Part, magni, cam, intens)
  617. for _,c in pairs(workspace:children()) do
  618. if game.Players:GetPlayerFromCharacter(c) ~= nil and c:findFirstChild("Torso") ~= nil then
  619. local targ = c.Torso.Position - Part.Position
  620. local mag = targ.magnitude
  621. if mag <= magni then
  622. camshake = script[cam]:Clone()
  623. camshake.Intensity.Value = mag / intens
  624. camshake.Parent = game.Players.LocalPlayer.Backpack
  625. camshake.Disabled = false
  626. end
  627. end
  628. end
  629. end
  630.  
  631. ShootCannon = function(asd, mindam, maxdam)
  632. local r = {BrickColor.new("Bright violet"), BrickColor.new("Bright green"), BrickColor.new("Really black"), BrickColor.new("Bright blue"), BrickColor.new("Maroon")}
  633. CreateSound("rbxassetid://263623156", asd, 0.5, 0.5)
  634. CreateSound("rbxassetid://263610152", asd, 0.5, 0.5)
  635. CreateSound("rbxassetid://263623139", asd, 0.5, 0.8)
  636. local MainPos = asd.Position
  637. local MainPos2 = mouse.Hit.p
  638. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  639. num = 30
  640. coroutine.resume(coroutine.create(function()
  641. repeat
  642. wait()
  643. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, Character)
  644. local mag = (MainPos - pos).magnitude
  645. MagicCylinder2(r[math.random(1, 3)], CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, 0.5, 0, 0.5, 0.03)
  646. MainPos = MainPos + MouseLook.lookVector * 10
  647. num = num - 1
  648. if hit ~= nil then
  649. num = 0
  650. local ref = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Reference", vt())
  651. ref.Anchored = true
  652. ref.CFrame = cf(pos)
  653. game.Debris:AddItem(ref, 3)
  654. MagniDamage(ref, mag, mindam, maxdam, 1, "Normal")
  655. CreateSound("rbxassetid://263610039", ref, 1, 1)
  656. CreateSound("rbxassetid://263610111", ref, 1, 1)
  657. BlockEffect(r[math.random(1, 2)], cf(pos), 5, 5, 5, 5, 5, 5, 0.05)
  658. SphereEffect(r[math.random(1, 2)], cf(pos), 5, 5, 5, 10, 10, 10, 0.05)
  659. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  660. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  661. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  662. BreakEffect(r[math.random(1, 2)], cf(pos), 1, 10, 1)
  663. RingEffect(r[math.random(1, 2)], cf(pos) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 5, 5, 5, 0, 0.05)
  664. game:GetService("Debris"):AddItem(ref, 1)
  665. MagniDamage(ref, 10, mindam, maxdam, 10, "Normal")
  666. end
  667. until num <= 0
  668. end
  669. ))
  670. end
  671.  
  672. Confetti = function()
  673. attack = true
  674. for i = 0, 1, 0.1 do
  675. swait()
  676. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  677. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  678. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  679. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  680. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  681. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  682. end
  683. makeconfetti(Barrel)
  684. for i = 1, 30 do
  685. local confetti = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.Random(), "Confetti", vt())
  686. local cmsh = CreateMesh("BlockMesh", confetti, "", "", vt(0, 0, 0), vt(3, 1, 3))
  687. confetti.CFrame = Barrel.CFrame * cf(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100)
  688. confetti.Velocity = RootPart.CFrame.lookVector * math.random(40, 60) + vt(math.random(-100, 100) / 100, 1, math.random(-100, 100) / 100) * math.random(60, 80)
  689. game:GetService("Debris"):AddItem(confetti, 5)
  690. end
  691. CreateSound("http://www.roblox.com/asset/?id=104605494", RootPart, 1, 1)
  692. CreateSound("rbxassetid://263610152", RootPart, 0.5, 0.5)
  693. SphereEffect(BrickColor.new("White"), Barrel.CFrame, 5, 5, 5, 10, 10, 10, 0.05)
  694. MagniDamage(RootPart, 15, -30, -10, "Normal")
  695. for i = 0, 1, 0.1 do
  696. swait()
  697. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  698. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  699. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(200), math.rad(0), math.rad(0)), 0.3)
  700. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  701. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  702. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  703. end
  704. attack = false
  705. end
  706.  
  707. Party = function()
  708. attack = true
  709. Humanoid.JumpPower = 250
  710. for i = 0, 1, 0.1 do
  711. swait()
  712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  713. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  714. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  715. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  716. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  717. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  718. end
  719. makeconfetti(Barrel)
  720. for i = 1, 30 do
  721. local confetti = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.Random(), "Confetti", vt())
  722. local cmsh = CreateMesh("BlockMesh", confetti, "", "", vt(0, 0, 0), vt(3, 1, 3))
  723. confetti.CFrame = Barrel.CFrame * cf(math.random(-300, 300) / 100, math.random(-300, 300) / 100, math.random(-300, 300) / 100)
  724. confetti.Velocity = RootPart.CFrame.lookVector * math.random(40, 60) + vt(math.random(-100, 100) / 100, 1, math.random(-100, 100) / 100) * math.random(60, 80)
  725. game:GetService("Debris"):AddItem(confetti, 5)
  726. end
  727. Humanoid.Jump = true
  728. CreateSound("http://www.roblox.com/asset/?id=104605494", RootPart, 1, 1)
  729. CreateSound("rbxassetid://263610152", RootPart, 0.5, 0.5)
  730. SphereEffect(BrickColor.Random(), Barrel.CFrame, 5, 5, 5, 10, 10, 10, 0.05)
  731. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 5, 5, 5, 1, 1, 3, 0.01)
  732. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 8, 8, 8, 2, 2, 3, 0.01)
  733. RingEffect(BrickColor.Random(), RootPart.CFrame * angles(1.47, 0, 0), 9, 9, 9, 3, 3, 3, 0.01)
  734. MagniDamage(RootPart, 30, 30, 50, "Knockdown")
  735. wait(2)
  736. Humanoid.JumpPower = 50
  737. attack = false
  738. end
  739.  
  740. local aiming = false
  741. Aim = function()
  742. attack = true
  743. aiming = true
  744. Humanoid.WalkSpeed = 0
  745. for i = 0, 1, 0.1 do
  746. swait()
  747. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  748. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  749. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  750. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  751. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  752. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  753. end
  754. end
  755.  
  756. local blast = false
  757. Shot = function()
  758. Humanoid.WalkSpeed = 16
  759.  
  760. if blast == false then
  761. blast = true
  762. ShootCannon(Barrel, 20, 30)
  763. end
  764. SphereEffect(BrickColor.new("White"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  765. for i = 0, 1, 0.1 do
  766. swait()
  767. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos(sine / 9)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  768. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(120), math.rad(0), math.rad(-60)), 0.3)
  770. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos(sine / 9), -0.5) * angles(math.rad(120), math.rad(0), math.rad(60)), 0.3)
  771. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos(sine / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  772. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos(sine / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  773. end
  774. blast = false
  775. attack = false
  776. aiming = false
  777. end
  778.  
  779. taunt = function()
  780. attack = true
  781. for i = 0, 1, 0.2 do
  782. swait()
  783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  784. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  787. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  788. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  789. end
  790. for i = 0, 1, 0.2 do
  791. swait()
  792. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  793. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  794. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  795. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  796. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  797. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  798. end
  799. for i = 0, 1, 0.2 do
  800. swait()
  801. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  802. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  803. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  804. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  805. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  806. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  807. end
  808. for i = 0, 1, 0.2 do
  809. swait()
  810. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  811. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  812. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  813. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3)
  814. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  815. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  816. end
  817. for i = 0, 1, 0.2 do
  818. swait()
  819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  820. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  821. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  822. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.8, 0.2) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.3)
  823. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  824. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  825. end
  826. attack = false
  827. end
  828.  
  829. EatMuffin = function()
  830. attack = true
  831. CreateSound("http://www.roblox.com/asset/?id=130776108", RootPart, 1, 1)
  832. for i = 0, 1, 0.1 do
  833. swait()
  834. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  835. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  836. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(80)), 0.3)
  837. LW.C0 = clerp(LW.C0, CFrame.new(-1.8, 0.8, 0.2) * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.3)
  838. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  839. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  840. end
  841. print("Muffins")
  842. local Muffin = Instance.new("Part")
  843. Muffin.formFactor = 1
  844. Muffin.CanCollide = false
  845. Muffin.Name = "Muffin"
  846. Muffin.Locked = true
  847. Muffin.Size = Vector3.new(1, 1, 1)
  848. Muffin.Parent = effect
  849. local Muffinmesh = Instance.new("SpecialMesh")
  850. Muffinmesh.Parent = Muffin
  851. Muffinmesh.MeshId = "http://www.roblox.com/asset/?id=16211718"
  852. Muffinmesh.TextureId = "http://www.roblox.com/asset/?id=16211592"
  853. Muffinmesh.Scale = Vector3.new(1, 1, 1)
  854. local Muffinweld = Instance.new("Weld")
  855. Muffinweld.Parent = Muffin
  856. Muffinweld.Part0 = Muffin
  857. Muffinweld.Part1 = LeftArm
  858. Muffinweld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, math.rad(-60)) * CFrame.new(0, 1, 0.5)
  859. for i = 0, 1, 0.1 do
  860. swait()
  861. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  862. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  863. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  864. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)), 0.3)
  865. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  866. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  867. end
  868. for i = 0, 1, 0.1 do
  869. swait()
  870. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0.2) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  871. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3)
  872. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  873. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.1)
  874. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  875. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  876. end
  877. for i = 1, 5 do
  878. wait(0.45)
  879. Character.Humanoid.Health = Character.Humanoid.Health + 5
  880. end
  881. Muffin.Parent = nil
  882. attack = false
  883. end
  884.  
  885. ob1u = function()
  886. end
  887.  
  888. ob1d = function()
  889. if attack == true and aiming == true and cooco <= coolcool then
  890. Shot()
  891. coolcool = 0
  892. aiming = false
  893. attack = false
  894. end
  895. end
  896.  
  897. key = function(k)
  898. k = k:lower()
  899. if attack == false and k == "f" then
  900. Aim()
  901. else
  902. if attack == false and co1 <= cooldown1 and k == "z" then
  903. cooldown1 = 0
  904. taunt()
  905. else
  906. if attack == false and co2 <= cooldown2 and k == "x" then
  907. cooldown2 = 0
  908. EatMuffin()
  909. else
  910. if attack == false and co3 <= cooldown3 and k == "c" then
  911. cooldown3 = 0
  912. Confetti()
  913. else
  914. if attack == false and co4 <= cooldown4 and k == "v" then
  915. cooldown4 = 0
  916. Party()
  917. end
  918. end
  919. end
  920. end
  921. end
  922. end
  923.  
  924. Bin = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  925. ds = function(mouse)
  926. end
  927.  
  928. s = function(mouse)
  929. print("Selected")
  930. mouse.Button1Down:connect(function()
  931. ob1d(mouse)
  932. end
  933. )
  934. mouse.Button1Up:connect(function()
  935. ob1u(mouse)
  936. end
  937. )
  938. mouse.KeyDown:connect(key)
  939. end
  940.  
  941. Bin.Selected:connect(s)
  942. Bin.Deselected:connect(ds)
  943. updateskills = function()
  944. if coolcool <= cooco then
  945. coolcool = coolcool + 0.033333333333333
  946. text5.Text = "Reloading"
  947. else
  948. text5.Text = "[F] Aim"
  949. end
  950. if cooldown1 <= co1 then
  951. cooldown1 = cooldown1 + 0.033333333333333
  952. end
  953. if cooldown2 <= co2 then
  954. cooldown2 = cooldown2 + 0.033333333333333
  955. end
  956. if cooldown3 <= co3 then
  957. cooldown3 = cooldown3 + 0.033333333333333
  958. end
  959. if cooldown4 <= co4 then
  960. cooldown4 = cooldown4 + 0.033333333333333
  961. end
  962. end
  963.  
  964. while 1 do
  965. swait()
  966. updateskills()
  967. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  968. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  969. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  970. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  971. bar5:TweenSize(UDim2.new(1 * (coolcool / cooco), 0, 1, 0), "Out", "Bounce", 0.5)
  972. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  973. velocity = RootPart.Velocity.y
  974. sine = sine + change
  975. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  976. if equipped == true or equipped == false then
  977. if 1 < RootPart.Velocity.y and hit == nil then
  978. Anim = "Jump"
  979. if attack == false then
  980. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  981. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(50)), 0.3)
  982. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  983. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  984. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  985. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  986. end
  987. else
  988. if RootPart.Velocity.y < -1 and hit == nil then
  989. Anim = "Fall"
  990. if attack == false then
  991. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  992. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30), math.rad(0), math.rad(50)), 0.3)
  993. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  994. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  995. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  996. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  997. end
  998. else
  999. if Torsovelocity.x < 1 or Torsovelocity.z < 1 and hit ~= nil then
  1000. Anim = "Idle"
  1001. if attack == false then
  1002. change = 1
  1003. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1004. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1005. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.3)
  1006. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(50), math.rad(0), math.rad(50)), 0.3)
  1007. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1008. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1009. end
  1010. else
  1011. if 2 < Torsovelocity.x or Torsovelocity.z > 2 and hit ~= nil then
  1012. Anim = "Walk"
  1013. if attack == false then
  1014. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1015. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1016. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.1 * math.cos((sine) / 9), 0) * angles(math.rad(40), math.rad(0), math.rad(-40)), 0.3)
  1017. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5 - 0.1 * math.cos((sine) / 9), -0.5) * angles(math.rad(40), math.rad(0), math.rad(40)), 0.3)
  1018. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1019. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1020. end
  1021. end
  1022. end
  1023. end
  1024. end
  1025. end
  1026. if 0 < #Effects then
  1027. for e = 1, #Effects do
  1028. if Effects[e] ~= nil then
  1029. local Thing = Effects[e]
  1030. if Thing ~= nil then
  1031. local Part = Thing[1]
  1032. local Mode = Thing[2]
  1033. local Delay = Thing[3]
  1034. local IncX = Thing[4]
  1035. local IncY = Thing[5]
  1036. local IncZ = Thing[6]
  1037. if Thing[1].Transparency <= 1 then
  1038. if Thing[2] == "Block1" then
  1039. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1040. Mesh = Thing[1].Mesh
  1041. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1042. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1043. else
  1044. if Thing[2] == "Block2" then
  1045. Thing[1].CFrame = Thing[1].CFrame
  1046. Mesh = Thing[7]
  1047. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1048. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1049. else
  1050. if Thing[2] == "Cylinder" then
  1051. Mesh = Thing[1].Mesh
  1052. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1053. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1054. else
  1055. if Thing[2] == "Blood" then
  1056. Mesh = Thing[7]
  1057. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1058. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1059. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1060. else
  1061. if Thing[2] == "Elec" then
  1062. Mesh = Thing[1].Mesh
  1063. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1064. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1065. else
  1066. if Thing[2] == "Disappear" then
  1067. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1068. else
  1069. if Thing[2] == "Shatter" then
  1070. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1071. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1072. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1073. Thing[6] = Thing[6] + Thing[5]
  1074. end
  1075. end
  1076. end
  1077. end
  1078. end
  1079. end
  1080. end
  1081. else
  1082. Part.Parent = nil
  1083. table.remove(Effects, e)
  1084. end
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
Add Comment
Please, Sign In to add comment