Advertisement
FuntimeArtic

op kingsman

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