Advertisement
xDDx

Untitled

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