Advertisement
Guest User

ice assault rifle

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.86 KB | None | 0 0
  1. wait(0.016666666666667)
  2. script.Name = "Chaos"
  3. local Player = game.Players.LocalPlayer
  4. repeat
  5. wait()
  6. until Player
  7. local Character = Player.Character
  8. repeat
  9. wait()
  10. until Character
  11. local Effects = {}
  12. local Humanoid = Character.Humanoid
  13. local mouse = Player:GetMouse()
  14. local m = Instance.new("Model", Character)
  15. m.Name = "WeaponModel"
  16. local LeftArm = Character["Left Arm"]
  17. local RightArm = Character["Right Arm"]
  18. local LeftLeg = Character["Left Leg"]
  19. local RightLeg = Character["Right Leg"]
  20. local Head = Character.Head
  21. local Torso = Character.Torso
  22. local cam = game.Workspace.CurrentCamera
  23. local RootPart = Character.HumanoidRootPart
  24. local RootJoint = RootPart.RootJoint
  25. local equipped = false
  26. local attack = false
  27. local Anim = "Idle"
  28. local idle = 0
  29. local attacktype = 1
  30. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  31. local velocity = RootPart.Velocity.y
  32. local sine = 0
  33. local change = 1
  34. local grabbed = false
  35. local cn = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40. local cf = CFrame.new
  41. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  42. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  43. Humanoid.Animator.Parent = nil
  44. Character.Animate.Parent = nil
  45. local newFakeMotor = function(part0, part1, c0, c1)
  46.  
  47. local w = Instance.new("Motor", part0)
  48. w.Part0 = part0
  49. w.Part1 = part1
  50. w.C0 = c0
  51. w.C1 = c1
  52. return w
  53. end
  54.  
  55. clerp = function(a, b, t)
  56.  
  57. return a:lerp(b, t)
  58. end
  59.  
  60. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  61. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  62. local RW = newFakeMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  63. local LW = newFakeMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  64. local RH = newFakeMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  65. local LH = newFakeMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  66. RootJoint.C1 = CFrame.new(0, 0, 0)
  67. RootJoint.C0 = CFrame.new(0, 0, 0)
  68. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  69. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  70. local rarmc1 = RW.C1
  71. local larmc1 = LW.C1
  72. local rlegc1 = RH.C1
  73. local llegc1 = LH.C1
  74. local resetc1 = false
  75. PlayAnimationFromTable = function(table, speed, bool)
  76.  
  77. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  78. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  79. RW.C0 = clerp(RW.C0, table[3], speed)
  80. LW.C0 = clerp(LW.C0, table[4], speed)
  81. RH.C0 = clerp(RH.C0, table[5], speed)
  82. LH.C0 = clerp(LH.C0, table[6], speed)
  83. if bool == true and resetc1 == false then
  84. resetc1 = true
  85. RootJoint.C1 = RootJoint.C1
  86. Torso.Neck.C1 = Torso.Neck.C1
  87. RW.C1 = rarmc1
  88. LW.C1 = larmc1
  89. RH.C1 = rlegc1
  90. LH.C1 = llegc1
  91. end
  92. end
  93.  
  94. ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui)
  95. ArtificialHB.Name = "Heartbeat"
  96. Player.PlayerGui:WaitForChild("Heartbeat")
  97. frame = 0.033333333333333
  98. tf = 0
  99. allowframeloss = false
  100. tossremainder = false
  101. lastframe = tick()
  102. Player.PlayerGui.Heartbeat:Fire()
  103. local gg = false
  104. game:GetService("RunService").Heartbeat:connect(function(s, p)
  105.  
  106. if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then
  107. gg = true
  108. end
  109. if gg == true then
  110. return
  111. end
  112. tf = tf + s
  113. if frame <= tf then
  114. if allowframeloss then
  115. Player.PlayerGui.Heartbeat:Fire()
  116. lastframe = tick()
  117. else
  118. for i = 1, math.floor(tf / frame) do
  119. Player.PlayerGui.Heartbeat:Fire()
  120. end
  121. lastframe = tick()
  122. end
  123. if tossremainder then
  124. tf = 0
  125. else
  126. tf = tf - frame * math.floor(tf / frame)
  127. end
  128. end
  129. end
  130. )
  131. swait = function(num)
  132.  
  133. if num == 0 or num == nil then
  134. ArtificialHB.Event:wait()
  135. else
  136. for i = 0, num do
  137. ArtificialHB.Event:wait()
  138. end
  139. end
  140. end
  141.  
  142. local RbxUtility = LoadLibrary("RbxUtility")
  143. local Create = RbxUtility.Create
  144. RemoveOutlines = function(part)
  145.  
  146. part.TopSurface = 10
  147. end
  148.  
  149. local co1 = 60
  150. local co2 = 20
  151. local co3 = 30
  152. local co4 = 30
  153. local cooldown1 = 60
  154. local cooldown2 = 0
  155. local cooldown3 = 0
  156. local cooldown4 = 0
  157. local skillcolorscheme = BrickColor.new("Fossil").Color
  158. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  159. makeframe = function(par, trans, pos, size, color)
  160.  
  161. local frame = Instance.new("Frame", par)
  162. frame.BackgroundTransparency = trans
  163. frame.BorderSizePixel = 0
  164. frame.Position = pos
  165. frame.Size = size
  166. frame.BackgroundColor3 = color
  167. return frame
  168. end
  169.  
  170. makelabel = function(par, text)
  171.  
  172. local label = Instance.new("TextLabel", par)
  173. label.BackgroundTransparency = 1
  174. label.Size = UDim2.new(1, 0, 1, 0)
  175. label.Position = UDim2.new(0, 0, 0, 0)
  176. label.TextColor3 = Color3.new(255, 255, 255)
  177. label.TextStrokeTransparency = 0
  178. label.FontSize = Enum.FontSize.Size32
  179. label.Font = Enum.Font.SourceSansLight
  180. label.BorderSizePixel = 0
  181. label.TextScaled = true
  182. label.Text = text
  183. end
  184.  
  185. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  186. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  187. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  188. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  189. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  190. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  191. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  192. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  193. text1 = Instance.new("TextLabel", framesk1)
  194. text1.BackgroundTransparency = 1
  195. text1.Size = UDim2.new(1, 0, 1, 0)
  196. text1.Position = UDim2.new(0, 0, 0, 0)
  197. text1.TextColor3 = Color3.new(255, 255, 255)
  198. text1.TextStrokeTransparency = 0
  199. text1.FontSize = Enum.FontSize.Size18
  200. text1.Font = Enum.Font.SourceSansLight
  201. text1.BorderSizePixel = 0
  202. text1.TextScaled = true
  203. text1.Text = "[Z]\n N/A"
  204. text2 = Instance.new("TextLabel", framesk2)
  205. text2.BackgroundTransparency = 1
  206. text2.Size = UDim2.new(1, 0, 1, 0)
  207. text2.Position = UDim2.new(0, 0, 0, 0)
  208. text2.TextColor3 = Color3.new(255, 255, 255)
  209. text2.TextStrokeTransparency = 0
  210. text2.FontSize = Enum.FontSize.Size18
  211. text2.Font = Enum.Font.SourceSansLight
  212. text2.BorderSizePixel = 0
  213. text2.TextScaled = true
  214. text2.Text = "[X]\n Reload"
  215. text3 = Instance.new("TextLabel", framesk3)
  216. text3.BackgroundTransparency = 1
  217. text3.Size = UDim2.new(1, 0, 1, 0)
  218. text3.Position = UDim2.new(0, 0, 0, 0)
  219. text3.TextColor3 = Color3.new(255, 255, 255)
  220. text3.TextStrokeTransparency = 0
  221. text3.FontSize = Enum.FontSize.Size18
  222. text3.Font = Enum.Font.SourceSansLight
  223. text3.BorderSizePixel = 0
  224. text3.TextScaled = false
  225. text3.Text = "[C]\n Armageddon"
  226. text4 = Instance.new("TextLabel", framesk4)
  227. text4.BackgroundTransparency = 1
  228. text4.Size = UDim2.new(1, 0, 1, 0)
  229. text4.Position = UDim2.new(0, 0, 0, 0)
  230. text4.TextColor3 = Color3.new(255, 255, 255)
  231. text4.TextStrokeTransparency = 0
  232. text4.FontSize = Enum.FontSize.Size18
  233. text4.Font = Enum.Font.SourceSansLight
  234. text4.BorderSizePixel = 0
  235. text4.TextScaled = true
  236. text4.Text = "[V]\n Bullet Storm"
  237. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  238.  
  239. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  240. RemoveOutlines(Part)
  241. return Part
  242. end
  243.  
  244. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  245.  
  246. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  247. if Mesh == "SpecialMesh" then
  248. Msh.MeshType = MeshType
  249. Msh.MeshId = MeshId
  250. end
  251. return Msh
  252. end
  253.  
  254. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  255.  
  256. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  257. return Weld
  258. end
  259.  
  260. CFuncs = {
  261. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  262.  
  263. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  264. RemoveOutlines(Part)
  265. return Part
  266. end
  267. }
  268. ,
  269. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  270.  
  271. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  272. if Mesh == "SpecialMesh" then
  273. Msh.MeshType = MeshType
  274. Msh.MeshId = MeshId
  275. end
  276. return Msh
  277. end
  278. }
  279. ,
  280. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  281.  
  282. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  283. if Mesh == "SpecialMesh" then
  284. Msh.MeshType = MeshType
  285. Msh.MeshId = MeshId
  286. end
  287. return Msh
  288. end
  289. }
  290. ,
  291. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  292.  
  293. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  294. return Weld
  295. end
  296. }
  297. ,
  298. Sound = {Create = function(id, par, vol, pit)
  299.  
  300. coroutine.resume(coroutine.create(function()
  301.  
  302. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  303. wait()
  304. S:play()
  305. game:GetService("Debris"):AddItem(S, 6)
  306. end
  307. ))
  308. end
  309. }
  310. ,
  311. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  312.  
  313. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  314. return fp
  315. end
  316. }
  317. }
  318. Handle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  319. 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))
  320. FakeHandle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  321. 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))
  322. Motor = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Black", "Motor", Vector3.new(0.50999999, 0.430000126, 0.460000008))
  323. 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))
  324. CreateMesh("CylinderMesh", Motor, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  325. Guhn = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Guhn", Vector3.new(4,.8,.6))
  326. GuhnWeld = CreateWeld(m, Handle, Guhn, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1, 0, -.4, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  327. Barrel = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Barrel", Vector3.new(0.200000003, 0.290000021, 0.420000017))
  328. BarrelWeld = CreateWeld(m, Guhn, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2,0,0, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  329. CreateMesh("BlockMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  330. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.00000003, 0.3))
  331. Part = CreateWeld(m, Guhn, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.09000206, .5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  332. Hitbox = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(4,.8,.6))
  333. HitboxWeld = CreateWeld(m, Guhn, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0,0,0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  334. FakeMotor = CreatePart(m, Enum.Material.Metal, 0.20000000298023, 1, "Medium stone grey", "Part", Vector3.new(1.60000002, 5.46000004, 1.48000002))
  335. FakeMotorWeld = CreateWeld(m, Motor, FakeMotor, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000012, 2.98023224e-08, 0, 2.98023224e-08, 1.00000012, 0, 0, 0, 1))
  336. FakeMag = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(1.2, .3, 0.3))
  337. FakeMagWeld = CreateWeld(m, Character["Left Arm"], FakeMag, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.5, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  338. Mag = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.2, 0.3))
  339. MagWeld = CreateWeld(m, Guhn, Mag, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1, .4, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  340. Part2 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, .85,.65))
  341. Part2 = CreateWeld(m, Guhn, Part2, 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))
  342. Part3 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(1.5, .3,.65))
  343. Part3 = CreateWeld(m, Guhn, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  344. Part4 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(1.5, .3,.65))
  345. Part4 = CreateWeld(m, Guhn, Part4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  346.  
  347.  
  348. rayCast = function(Position, Direction, Range, Ignore)
  349.  
  350. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  351. end
  352.  
  353. local GetNearest = function(obj, distance)
  354.  
  355. local last, lastx = distance + 1, nil
  356. for i,v in pairs(workspace:GetChildren()) do
  357. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  358. local t = v.Torso
  359. local dist = (t.Position - obj.Position).magnitude
  360. if dist <= distance and dist < last then
  361. last = dist
  362. lastx = v
  363. end
  364. end
  365. end
  366. return lastx
  367. end
  368.  
  369. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  370.  
  371. if hit.Parent == nil then
  372. return
  373. end
  374. local h = hit.Parent:FindFirstChild("Humanoid")
  375. for _,v in pairs(hit.Parent:children()) do
  376. if v:IsA("Humanoid") then
  377. h = v
  378. end
  379. end
  380. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  381. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  382. return
  383. end
  384. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  385. game:GetService("Debris"):AddItem(c, 0.5)
  386. if HitSound ~= nil and HitPitch ~= nil then
  387. end
  388. local Damage = math.random(minim, maxim)
  389. local blocked = false
  390. local block = hit.Parent:findFirstChild("Block")
  391. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  392. blocked = true
  393. block.Value = block.Value - 1
  394. print(block.Value)
  395. end
  396. if blocked == false then
  397. h.Health = h.Health - Damage
  398. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  399. else
  400. h.Health = h.Health - Damage / 2
  401. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  402. end
  403. if Type == "Knockdown" then
  404. local hum = hit.Parent.Humanoid
  405. hum.PlatformStand = true
  406. coroutine.resume(coroutine.create(function(HHumanoid)
  407.  
  408. swait(1)
  409. HHumanoid.PlatformStand = false
  410. end
  411. ), hum)
  412. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  413. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  414. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  415. game:GetService("Debris"):AddItem(bodvol, 0.5)
  416. game:GetService("Debris"):AddItem(rl, 0.5)
  417. elseif Type == "Normal" then
  418. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  419. if knockback > 0 then
  420. vp.Parent = hit.Parent.Torso
  421. end
  422. game:GetService("Debris"):AddItem(vp, 0.5)
  423. elseif Type == "Up" then
  424. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  425. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  426. elseif Type == "DarkUp" then
  427. coroutine.resume(coroutine.create(function()
  428.  
  429. for i = 0, 1, 0.1 do
  430. swait()
  431. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  432. end
  433. end
  434. ))
  435. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  436. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  437. elseif Type == "Snare" then
  438. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  439. game:GetService("Debris"):AddItem(bp, 1)
  440. elseif Type == "Curse" then
  441. CreateSound("http://roblox.com/asset/?id=283389706", Torso, 1, 1)
  442. for i = 0, 1, 0.025 do
  443. swait(30)
  444. SphereEffect(BrickColor.new("Bright violet"), hit.Parent.Torso.CFrame, 1, 1, 1, 3, 3, 3, 0.07)
  445. hit.Parent.Humanoid:TakeDamage(1)
  446. end
  447. elseif Type == "Freeze" then
  448. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  449. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  450. hit.Parent.Torso.Anchored = true
  451. coroutine.resume(coroutine.create(function(Part)
  452.  
  453. swait(1.5)
  454. Part.Anchored = false
  455. end
  456. ), hit.Parent.Torso)
  457. game:GetService("Debris"):AddItem(BodPos, 6)
  458. game:GetService("Debris"):AddItem(BodGy, 6)
  459. end
  460. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  461. game:GetService("Debris"):AddItem(debounce, Delay)
  462. c = Instance.new("ObjectValue")
  463. c.Name = "creator"
  464. c.Value = Player
  465. c.Parent = h
  466. game:GetService("Debris"):AddItem(c, 0.5)
  467. end
  468. end
  469.  
  470. ShowDamage = function(Pos, Text, Time, Color)
  471.  
  472. local Rate = 0.033333333333333
  473. if not Pos then
  474. local Pos = Vector3.new(0, 0, 0)
  475. end
  476. local Text = Text or ""
  477. local Time = Time or 2
  478. if not Color then
  479. local Color = Color3.new(1, 0, 1)
  480. end
  481. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  482. EffectPart.Anchored = true
  483. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  484. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  485. game.Debris:AddItem(EffectPart, Time + 0.1)
  486. EffectPart.Parent = game:GetService("Workspace")
  487. delay(0, function()
  488.  
  489. local Frames = Time / Rate
  490. for Frame = 1, Frames do
  491. wait(Rate)
  492. local Percent = Frame / Frames
  493. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  494. TextLabel.TextTransparency = Percent
  495. end
  496. if EffectPart and EffectPart.Parent then
  497. EffectPart:Destroy()
  498. end
  499. end
  500. )
  501. end
  502.  
  503. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  504.  
  505. for _,c in pairs(workspace:children()) do
  506. local hum = c:findFirstChild("Humanoid")
  507. if hum ~= nil then
  508. local head = c:findFirstChild("Torso")
  509. if head ~= nil then
  510. local targ = head.Position - Part.Position
  511. local mag = targ.magnitude
  512. if mag <= magni and c.Name ~= Player.Name then
  513. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=160432334", 1)
  514. end
  515. end
  516. end
  517. end
  518. end
  519.  
  520. EffectModel = Instance.new("Model", Character)
  521. EffectModel.Name = "Effects"
  522. Effects = {
  523. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  524.  
  525. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  526. prt.Anchored = true
  527. prt.CFrame = cframe
  528. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  529. game:GetService("Debris"):AddItem(prt, 10)
  530. if Type == 1 or Type == nil then
  531. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  532. else
  533. if Type == 2 then
  534. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  535. end
  536. end
  537. end
  538. }
  539. ,
  540. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  541.  
  542. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  543. prt.Anchored = true
  544. prt.CFrame = cframe
  545. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  546. game:GetService("Debris"):AddItem(prt, 10)
  547. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  548. end
  549. }
  550. ,
  551. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  552.  
  553. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  554. prt.Anchored = true
  555. prt.CFrame = cframe
  556. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  557. game:GetService("Debris"):AddItem(prt, 10)
  558. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  559. end
  560. }
  561. ,
  562. Cloud = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  563.  
  564. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  565. prt.Anchored = true
  566. prt.CFrame = cframe
  567. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  568. game:GetService("Debris"):AddItem(prt, 10)
  569. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  570. end
  571. }
  572. ,
  573. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  574.  
  575. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  576. prt.Anchored = true
  577. prt.CFrame = cframe
  578. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  579. game:GetService("Debris"):AddItem(prt, 10)
  580. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  581. end
  582. }
  583. ,
  584. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  585.  
  586. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  587. prt.Anchored = true
  588. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  589. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  590. local num = math.random(10, 50) / 1000
  591. game:GetService("Debris"):AddItem(prt, 10)
  592. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  593. end
  594. }
  595. }
  596. local rev = Instance.new("Sound", Barrel)
  597. rev.Volume = 0.05
  598. rev.Pitch = 1.2
  599. rev.Looped = false
  600. rev.SoundId = "rbxassetid://357820124"
  601. rev.MaxDistance = 1000
  602. local spim = Instance.new("Sound", Barrel)
  603. spim.Volume = 1
  604. spim.Pitch = 1
  605. spim.Looped = true
  606. spim.SoundId = "rbxassetid://167882734"
  607. spim.MaxDistance = 1000
  608. local aiming = false
  609. local nu = 0
  610. Aim = function()
  611.  
  612. aiming = true
  613. attack = true
  614. Humanoid.WalkSpeed = 2
  615. Humanoid.JumpPower = 0
  616. while aiming do
  617. swait()
  618. if rev.Playing == false and spim.Playing == false then
  619. end
  620. if nu < 360 then
  621. nu = nu + 20
  622. else
  623. nu = 0
  624. end
  625. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(nu), math.rad(0)), 0.3)
  626. end
  627. end
  628.  
  629. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630.  
  631. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  632. prt.Anchored = true
  633. prt.CFrame = cframe
  634. prt.Material = "Neon"
  635. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  636. game:GetService("Debris"):AddItem(prt, 10)
  637. coroutine.resume(coroutine.create(function(Part, Mesh)
  638.  
  639. for i = 0, 1, delay do
  640. swait()
  641. Part.Transparency = i
  642. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  643. end
  644. Part.Parent = nil
  645. end
  646. ), prt, msh)
  647. end
  648.  
  649. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  650.  
  651. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  652. prt.Anchored = true
  653. prt.CFrame = cframe
  654. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  655. game:GetService("Debris"):AddItem(prt, 10)
  656. if Type == 1 or Type == nil then
  657. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  658. else
  659. if Type == 2 then
  660. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  661. end
  662. end
  663. end
  664.  
  665. shoottraildd = function(mouse, partt, SpreadAmount)
  666.  
  667. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  668. local MainPos = partt.Position
  669. local MainPos2 = mouse.Hit.p + SpreadVectors
  670. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  671. local speed = 100
  672. local num = 10
  673. coroutine.resume(coroutine.create(function()
  674.  
  675. repeat
  676. swait()
  677. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  678. local mag = (MainPos - pos).magnitude
  679. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.25, 0, -0.25, 0.15)
  680. MainPos = MainPos + MouseLook.lookVector * speed
  681. num = num - 1
  682. MouseLook = MouseLook * angles(math.rad(0), 0, 0)
  683. if hit ~= nil then
  684. num = 0
  685. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  686. refpart.Anchored = true
  687. refpart.CFrame = CFrame.new(pos)
  688. game:GetService("Debris"):AddItem(refpart, 1)
  689. end
  690. do
  691. if num <= 0 then
  692. local refpart2 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  693. refpart2.Anchored = true
  694. refpart2.CFrame = CFrame.new(pos)
  695. game:GetService("Debris"):AddItem(refpart2, 1)
  696. if hit ~= nil then
  697. MagniDamage(refpart2, 5, 1, 1, 1, "Normal")
  698. for i = 0,9,1 do
  699. Effects.Block.Create("Really blue", refpart2.CFrame, 1, 1, 1, 2,2,2, 0.05)
  700. swait(5)
  701. end
  702. Effects.Block.Create("Really blue", refpart2.CFrame, 1,1,1,10,10,10,0.05)
  703. Effects.Block.Create("Pastel Blue", refpart2.CFrame, 1, 1, 1, 25,2.5,2.5, 0.05)
  704. MagniDamage(refpart2, 15, 1, 1, 1, "Normal")
  705. end
  706. end
  707. end
  708. until num <= 0
  709. end
  710. ))
  711. end
  712.  
  713. IceMortar = function()
  714.  
  715. local dacf = Head.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  716. local icepart1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", Vector3.new())
  717. icepart1.Anchored = true
  718. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  719. icepart1.CFrame = dacf
  720. local cfinc = 99999
  721. icepart1.Transparency = 1
  722. CFuncs.Sound.Create("rbxassetid://192410089", icepart1, 1, 1)
  723. game:GetService("Debris"):AddItem(icepart1, 1)
  724. local spread = Vector3.new((math.random(-3, 30) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-3, 3) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + Vector3.new(0, -1, 0))).magnitude / 100
  725. local TheHit = mouse.Hit.p
  726. local MouseLook = cn((icepart1.Position + TheHit) / 2, TheHit + spread)
  727. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  728. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  729. local test1, dist1 = mouse.Hit.p, nil
  730. if target1 ~= nil then
  731. cfda = target1.Position + Vector3.new(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  732. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  733. local d1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Effect", Vector3.new())
  734. d1.Anchored = true
  735. d1.CFrame = cn(pos2)
  736. MagniDamage(d1, 8, 3, 5, -10, "Normal")
  737. Effects.Sphere.Create(BrickColor.new("White"), Barrel.CFrame, 1, 1, 1, 3, 3, 3, 0.07)
  738. Effects.Cloud.Create(target1.BrickColor, Barrel.CFrame, 2, 1, 2, 0.1, 2, 0.1, 0.03)
  739. Effects.Cloud.Create(target1.BrickColor, cn(pos2), 1, 1, 1, math.random(0.7, 1), math.random(1, 3), math.random(0.7, 1), 0.03)
  740. Effects.Sphere.Create(BrickColor.new("Bright yellow"), cn(pos2), 1, 1, 1, 3, 3, 3, 0.07)
  741. Effects.Block.Create(BrickColor.new("Bright red"), cn(pos2), 1, 1, 1, 3, 3, 3, 0.07)
  742. Effects.Sphere.Create(BrickColor.new("White"), cn(pos2), 1, 1, 1, 10, 10, 10, 0.07)
  743. Effects.Ring.Create(BrickColor.new("Bright yellow"), cn(pos2), 0.1, 9999, 0.1, 0.5, 10, 0.5, 0.07)
  744. game.Debris:AddItem(d1, 0.5)
  745. end
  746. end
  747.  
  748. Hee = function()
  749.  
  750. local dacf = Head.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  751. local icepart1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", Vector3.new())
  752. icepart1.Anchored = true
  753. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  754. icepart1.CFrame = dacf
  755. local cfinc = 99999
  756. icepart1.Transparency = 1
  757. CFuncs.Sound.Create("rbxassetid://151130059", icepart1, 1, math.random(1, 3))
  758. game:GetService("Debris"):AddItem(icepart1, 1)
  759. local spread = Vector3.new((math.random(-30, 30) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-30, 30) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + Vector3.new(0, -1, 0))).magnitude / 100
  760. local TheHit = mouse.Hit.p
  761. local MouseLook = cn((icepart1.Position + TheHit) / 2, TheHit + spread)
  762. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  763. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  764. local test1, dist1 = mouse.Hit.p, nil
  765. if target1 ~= nil then
  766. cfda = target1.Position + Vector3.new(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  767. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  768. local d1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Effect", Vector3.new())
  769. d1.Anchored = true
  770. d1.CFrame = cn(pos2)
  771. MagniDamage(d1, 8, 3, 5, 0, "Normal")
  772. Effects.Sphere.Create(target1.BrickColor, cn(pos2), 1, 1, 1, 4, 4, 4, 0.07)
  773. Effects.Ring.Create(BrickColor.new("Bright yellow"), cn(pos2), 0.1, 9999, 0.1, 0.5, 10, 0.5, 0.07)
  774. game.Debris:AddItem(d1, 0.5)
  775. end
  776. end
  777.  
  778. local soe = Instance.new("Sound", Barrel)
  779. soe.Volume = 0.25
  780. soe.Pitch = 1
  781. soe.Looped = true
  782. soe.SoundId = "rbxassetid://338565873"
  783. soe.MaxDistance = 1000
  784. local shoot = false
  785. local hot = false
  786. fire = function()
  787.  
  788. hot = true
  789. shoot = true
  790. while shoot do
  791. while shoot do
  792. if shoot == true then
  793. swait(2.5)
  794. if cooldown1 >= 4 then
  795. soe:Play()
  796. cooldown1 = cooldown1 - 2
  797. shoottraildd(mouse, Barrel, 1)
  798. else
  799. soe:Stop()
  800. end
  801. end
  802. end
  803. soe:Stop()
  804. end
  805. hot = false
  806. end
  807.  
  808. baka = function()
  809.  
  810. Humanoid.WalkSpeed = 2
  811. Humanoid.JumpPower = 0
  812. attack = true
  813. for i = 0, 1, 0.5 do
  814. swait()
  815. PlayAnimationFromTable({CFrame.new(0, 0, 0, -0.126676023, 0.23911497, -0.962692738, 0.0259660054, 0.970977783, 0.237756103, 0.991604209, 0.00512071373, -0.129208475), CFrame.new(-0.0221787691, 1.45965314, -0.112358943, 0.595528305, -0.284922779, 0.751109242, 0.114603601, 0.955558896, 0.271612644, -0.795117676, -0.0756731778, 0.601715565), CFrame.new(1.10635591, 0.859423637, -0.981054425, 0.608006597, 0.255645812, 0.751646996, 0.66461128, 0.354005992, -0.658005834, -0.434303999, 0.899625063, 0.0453328565), CFrame.new(-1.15179741, 0.192107677, -0.658762455, 0.950540423, -0.300884187, 0.077081807, 0.186789155, 0.355474651, -0.915831685, 0.248158604, 0.884933174, 0.394094855), CFrame.new(0.568166018, -1.92436779, -0.615063548, 0.522848248, -0.20566088, 0.827244461, 0.0774576887, 0.977906942, 0.194160998, -0.848899424, -0.0374402776, 0.527226925), CFrame.new(-0.588464379, -2.00466871, -0.160800442, 0.795416594, 0.0259660054, 0.605506659, 0.123992123, 0.970977783, -0.204519317, -0.593244076, 0.237756103, 0.769112289)}, 0.4, false)
  816. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  817. end
  818. for i = 1, 10 do
  819. for i = 0, 1, 0.5 do
  820. swait()
  821. PlayAnimationFromTable({CFrame.new(0, 0, 0, -0.126676023, 0.23911497, -0.962692738, 0.0259660054, 0.970977783, 0.237756103, 0.991604209, 0.00512071373, -0.129208475), CFrame.new(-0.0221787691, 1.45965314, -0.112358943, 0.595528305, -0.284922779, 0.751109242, 0.114603601, 0.955558896, 0.271612644, -0.795117676, -0.0756731778, 0.601715565), CFrame.new(1.10635591, 0.859423637, -0.981054425, 0.608006597, 0.255645812, 0.751646996, 0.66461128, 0.354005992, -0.658005834, -0.434303999, 0.899625063, 0.0453328565), CFrame.new(-1.15179741, 0.192107677, -0.658762455, 0.950540423, -0.300884187, 0.077081807, 0.186789155, 0.355474651, -0.915831685, 0.248158604, 0.884933174, 0.394094855), CFrame.new(0.568166018, -1.92436779, -0.615063548, 0.522848248, -0.20566088, 0.827244461, 0.0774576887, 0.977906942, 0.194160998, -0.848899424, -0.0374402776, 0.527226925), CFrame.new(-0.588464379, -2.00466871, -0.160800442, 0.795416594, 0.0259660054, 0.605506659, 0.123992123, 0.970977783, -0.204519317, -0.593244076, 0.237756103, 0.769112289)}, 0.4, false)
  822. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  823. end
  824. IceMortar()
  825. for i = 0, 1, 0.5 do
  826. swait()
  827. PlayAnimationFromTable({CFrame.new(0, 0, 0, -0.335253149, 0.328955054, -0.882832885, 0.107930049, 0.944303334, 0.310873568, 0.935925424, 0.00893715583, -0.352084786), CFrame.new(-0.00419440866, 1.463902, 0.0260094106, 0.372635633, -0.266420603, 0.888911009, 0.176304489, 0.960780025, 0.214053184, -0.91107595, 0.0769551396, 0.404991925), CFrame.new(1.16062069, 1.21589506, -1.1315105, 0.461470664, 0.408944249, 0.787279725, 0.759406447, 0.276684046, -0.588853061, -0.458635807, 0.869603693, -0.182873294), CFrame.new(-1.1017859, 0.105088279, -0.580041945, 0.871761322, -0.489363998, -0.0235606134, 0.251738638, 0.48867017, -0.83536166, 0.420309335, 0.722304821, 0.549195588), CFrame.new(0.356478155, -1.8632127, -0.897590756, 0.318082392, -0.179918393, 0.930834651, 0.152005479, 0.978804231, 0.137247398, -0.935798109, 0.0978359506, 0.33868891), CFrame.new(-0.668343425, -1.97596669, -0.199289501, 0.642908812, 0.107930049, 0.758300424, 0.172217295, 0.944303334, -0.280414909, -0.746330738, 0.310873568, 0.588513494)}, 0.3, false)
  828. end
  829. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  830. end
  831. Humanoid.WalkSpeed = 14
  832. Humanoid.JumpPower = 50
  833. attack = false
  834. end
  835.  
  836. bulletrain = function()
  837.  
  838. attack = true
  839. shoot = true
  840. Humanoid.WalkSpeed = 2
  841. Humanoid.JumpPower = 0
  842. for i = 0, 1, 0.5 do
  843. swait()
  844. PlayAnimationFromTable({CFrame.new(-8.64267349e-07, -0.259999782, 0.509999871, 0.454838723, 0.207662866, -0.866024196, -0.415319771, 0.909675479, 2.65391373e-06, 0.787801504, 0.359675765, 0.500002146), CFrame.new(0.047690846, 1.37390435, -0.00346283242, 0.454838723, 0.0202630162, 0.890343308, 0.207662866, 0.969769061, -0.128156841, -0.866024196, 0.243181929, 0.436880678), CFrame.new(1.1759336, -0.214563698, -0.518012762, 0.694960654, 0.00311025977, -0.719041109, -0.715354204, -0.0982373655, -0.691822171, -0.0727884769, 0.995158195, -0.0660461485), CFrame.new(-0.00660583377, 0.722521007, -1.36138439, 0.0264981389, -0.398905575, 0.916609168, 0.381749183, -0.843399405, -0.378080904, 0.92388618, 0.359933168, 0.129933342), CFrame.new(0.993886769, -1.80155158, 0.41332227, 0.946233869, -0.168109909, -0.276370257, 0.32347101, 0.484278023, 0.812921524, -0.00282013416, -0.858611643, 0.512618959), CFrame.new(-0.795712531, -2.27605748, -0.675008774, 0.968845665, 0.247665286, -6.2584877e-07, -0.247665256, 0.968845665, -3.36766243e-06, -2.08616257e-07, 3.39746475e-06, 1)}, 0.3, false)
  845. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  846. end
  847. soe:Play()
  848. for i = 1, 5 do
  849. for i = 0, 1, 0.5 do
  850. swait()
  851. PlayAnimationFromTable({CFrame.new(-8.64267349e-07, -0.259999782, 0.509999871, 0.454838723, 0.207662866, -0.866024196, -0.415319771, 0.909675479, 2.65391373e-06, 0.787801504, 0.359675765, 0.500002146), CFrame.new(0.047690846, 1.37390435, -0.00346283242, 0.454838723, 0.0202630162, 0.890343308, 0.207662866, 0.969769061, -0.128156841, -0.866024196, 0.243181929, 0.436880678), CFrame.new(1.1759336, -0.214563698, -0.518012762, 0.694960654, 0.00311025977, -0.719041109, -0.715354204, -0.0982373655, -0.691822171, -0.0727884769, 0.995158195, -0.0660461485), CFrame.new(-0.00660583377, 0.722521007, -1.36138439, 0.0264981389, -0.398905575, 0.916609168, 0.381749183, -0.843399405, -0.378080904, 0.92388618, 0.359933168, 0.129933342), CFrame.new(0.993886769, -1.80155158, 0.41332227, 0.946233869, -0.168109909, -0.276370257, 0.32347101, 0.484278023, 0.812921524, -0.00282013416, -0.858611643, 0.512618959), CFrame.new(-0.795712531, -2.27605748, -0.675008774, 0.968845665, 0.247665286, -6.2584877e-07, -0.247665256, 0.968845665, -3.36766243e-06, -2.08616257e-07, 3.39746475e-06, 1)}, 0.3, false)
  852. end
  853. Effects.Ring.Create(BrickColor.new("Bright yellow"), Barrel.CFrame, 0.05, 9999, 0.05, 0.5, 10, 0.5, 0.07)
  854. coroutine.resume(coroutine.create(function()
  855.  
  856. swait(50)
  857. for i = 0, 3 do
  858. swait()
  859. Hee()
  860. end
  861. end
  862. ))
  863. for i = 0, 1, 0.5 do
  864. swait()
  865. PlayAnimationFromTable({CFrame.new(-4.02331352e-07, -0.429999679, 0.509999633, 0.454838723, 0.207662866, -0.866024196, -0.415319771, 0.909675479, 2.65391373e-06, 0.787801504, 0.359675765, 0.500002146), CFrame.new(-0.0229135007, 1.52854931, -0.00346241146, 0.454838723, 0.0202630162, 0.890343308, 0.207662866, 0.969769061, -0.128156841, -0.866024196, 0.243181929, 0.436880678), CFrame.new(1.34206092, -0.578433394, -0.518014491, 0.694960654, 0.00311025977, -0.719041109, -0.715354204, -0.0982373655, -0.691822171, -0.0727884769, 0.995158195, -0.0660461485), CFrame.new(0.159522176, 0.358650804, -1.36138511, 0.0264981389, -0.398905575, 0.916609168, 0.381749183, -0.843399405, -0.378080904, 0.92388618, 0.359933168, 0.129933342), CFrame.new(0.923282862, -1.64690685, 0.413322628, 0.946233869, -0.168109909, -0.276370257, 0.32347101, 0.484278023, 0.812921524, -0.00282013416, -0.858611643, 0.512618959), CFrame.new(-0.866316676, -2.12141252, -0.675008297, 0.968845665, 0.247665286, -6.2584877e-07, -0.247665256, 0.968845665, -3.36766243e-06, -2.08616257e-07, 3.39746475e-06, 1)}, 0.3, false)
  866. end
  867. end
  868. Humanoid.WalkSpeed = 16
  869. Humanoid.JumpPower = 50
  870. shoot = false
  871. attack = false
  872. end
  873.  
  874. reload = function()
  875.  
  876. attack = true
  877. CFuncs.Sound.Create("rbxassetid://266022905", Torso, 1, 1)
  878. Humanoid.WalkSpeed = 16
  879. Humanoid.JumpPower = 50
  880. FakeMag.Transparency=0
  881. Mag.Transparency= 1
  882. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(90), math.rad(90), math.rad(0)), 0.3)
  883. Torso.Neck.C0 = clerp(Torso.Neck.C0+Vector3.new(0,0.25,-.1), NeckCF * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  884. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(50), math.rad(-60), math.rad(-20)), 0.3)
  885. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, -1 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(850), math.rad(-70)), 0.3)
  886. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  887. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  888. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  889. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  890. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  891. swait(45)
  892. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(90), math.rad(90), math.rad(0)), 0.3)
  893. Torso.Neck.C0 = clerp(Torso.Neck.C0+Vector3.new(0,0.25,-.1), NeckCF * angles(math.rad(30), math.rad(-90), math.rad(-90)), 0.3)
  894. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  895. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  896. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  897. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  898. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  899. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  900. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  901. FakeMag.Transparency=1
  902. Mag.Transparency=0
  903. cooldown1 = 60
  904. Humanoid.WalkSpeed = 16
  905. Humanoid.JumpPower = 50
  906. attack = false
  907. end
  908.  
  909. mouse.Button1Down:connect(function()
  910.  
  911. if attack == false and aiming == false then
  912. Aim()
  913. end
  914. end
  915. )
  916. mouse.Button1Up:connect(function()
  917.  
  918. if attack == true and aiming == true then
  919. attack = false
  920. aiming = false
  921. Humanoid.WalkSpeed = 14
  922. Humanoid.JumpPower = 50
  923. shoot = false
  924. end
  925. end
  926. )
  927. mouse.KeyDown:connect(function(k)
  928.  
  929. k = k:lower()
  930. if attack == true and aiming == true and hot == false and k == "z" then
  931. fire()
  932. else
  933. if attack == false and aiming == false and hot == false and k == "c" --[[and co3 <= cooldown3]] then
  934. cooldown3 = 0
  935. baka()
  936. else
  937. if attack == false and aiming == false and hot == false and k == "v" --[[and co4 <= cooldown4]] then
  938. cooldown4 = 0
  939. bulletrain()
  940. else
  941. if attack == false and aiming == false and hot == false and k == "x" --[[and co2 <= cooldown2]] then
  942. cooldown2 = 0
  943. reload()
  944. end
  945. end
  946. end
  947. end
  948. end
  949. )
  950. mouse.KeyUp:connect(function(k)
  951.  
  952. k = k:lower()
  953. if attack == true and aiming == true and hot == true and k == "z" then
  954. shoot = false
  955. end
  956. end
  957. )
  958. updateskills = function()
  959.  
  960. if aiming == false then
  961. text1.Text = "[Z]\n N/A"
  962. else
  963. text1.Text = "[Z]\n Fire"
  964. end
  965. if cooldown2 <= co2 then
  966. cooldown2 = cooldown2 + 0.033333333333333
  967. end
  968. if cooldown3 <= co3 then
  969. cooldown3 = cooldown3 + 0.033333333333333
  970. end
  971. if cooldown4 <= co4 then
  972. cooldown4 = cooldown4 + 0.033333333333333
  973. end
  974. end
  975.  
  976. Humanoid.WalkSpeed = 14
  977. while true do
  978. swait()
  979. updateskills()
  980. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  981. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  982. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  983. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  984. if shoot == false then
  985. soe:Stop()
  986. end
  987. if aiming == false then
  988. spim:Stop()
  989. end
  990. if aiming == true then
  991. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  992. local direction = aim.lookVector
  993. local headingA = math.atan2(direction.x, direction.z)
  994. headingA = math.deg(headingA)
  995. Humanoid.AutoRotate = false
  996. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  997. else
  998. --do
  999. Humanoid.AutoRotate = true
  1000. end
  1001. for i,v in pairs(Character:GetChildren()) do
  1002. if v:IsA("Part") then
  1003. v.Material = "SmoothPlastic"
  1004. else
  1005. if v:IsA("Hat") then
  1006. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1007. end
  1008. end
  1009. end
  1010. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1011. velocity = RootPart.Velocity.y
  1012. sine = sine + change
  1013. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1014. if equipped == true or equipped == false then
  1015. if 16565656565656565 < RootPart.Velocity.y and hit == nil then
  1016. Anim = "Jump"
  1017. if attack == false then
  1018. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  1019. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -0.3) * angles(math.rad(80), math.rad(-50), math.rad(30)), 0.3)
  1021. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.4, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1022. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3)
  1023. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1024. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1025. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1026. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1027. end
  1028. else
  1029. if RootPart.Velocity.y < -65656565665561 and hit == nil then
  1030. Anim = "Fall"
  1031. if attack == false then
  1032. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(20), math.rad(-30), math.rad(0)), 0.3)
  1033. Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(-20), math.rad(30), math.rad(0)), 0.3)
  1034. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -0.3) * angles(math.rad(80), math.rad(-50), math.rad(30)), 0.3)
  1035. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.4, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1036. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3)
  1037. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1038. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1039. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1040. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1041. end
  1042. else
  1043. if Torsovelocity < 1 and hit ~= nil then
  1044. Anim = "Idle"
  1045. if attack == false then
  1046. change = 1
  1047. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(90), math.rad(90), math.rad(0)), 0.3)
  1048. Torso.Neck.C0 = clerp(Torso.Neck.C0+Vector3.new(0,0.25,-.1), NeckCF * angles(math.rad(30), math.rad(-90), math.rad(-90)), 0.3)
  1049. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1050. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  1051. RH.C0 = clerp(RH.C0, cf(.5, -2, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1052. LH.C0 = clerp(LH.C0, cf(-.5, -2, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1053. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)end
  1054. else
  1055. if 2 < Torsovelocity and hit ~= nil then
  1056. Anim = "Walk"
  1057. if attack == false then
  1058. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(90), math.rad(90), math.rad(0)), 0.3)
  1059. Torso.Neck.C0 = clerp(Torso.Neck.C0+Vector3.new(0,0.25,-.1), NeckCF * angles(math.rad(30), math.rad(-90), math.rad(-90)), 0.3)
  1060. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1061. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  1062. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1063. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1064. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1065. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1066. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1067. end
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073. if 0 < #Effects then
  1074. for e = 1, #Effects do
  1075. if Effects[e] ~= nil then
  1076. local Thing = Effects[e]
  1077. if Thing ~= nil then
  1078. local Part = Thing[1]
  1079. local Mode = Thing[2]
  1080. local Delay = Thing[3]
  1081. local IncX = Thing[4]
  1082. local IncY = Thing[5]
  1083. local IncZ = Thing[6]
  1084. if Thing[1].Transparency <= 1 then
  1085. if Thing[2] == "Block1" then
  1086. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1087. Mesh = Thing[1].Mesh
  1088. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1089. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1090. else
  1091. if Thing[2] == "Block2" then
  1092. Thing[1].CFrame = Thing[1].CFrame
  1093. Mesh = Thing[7]
  1094. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1095. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1096. else
  1097. if Thing[2] == "Cylinder" then
  1098. Mesh = Thing[1].Mesh
  1099. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1100. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1101. else
  1102. if Thing[2] == "Blood" then
  1103. Mesh = Thing[7]
  1104. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1105. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1106. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1107. else
  1108. if Thing[2] == "Elec" then
  1109. Mesh = Thing[1].Mesh
  1110. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1111. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1112. else
  1113. if Thing[2] == "Disappear" then
  1114. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1115. else
  1116. if Thing[2] == "Shatter" then
  1117. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1118. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1119. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1120. Thing[6] = Thing[6] + Thing[5]
  1121. end
  1122. end
  1123. end
  1124. end
  1125. end
  1126. end
  1127. end
  1128. else
  1129. Part.Parent = nil
  1130. table.remove(Effects, e)
  1131. end
  1132. end
  1133. end
  1134. end
  1135. end
  1136. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement