Advertisement
wowzers

ice assault rifle

Jun 26th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.90 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. local color1 = "Really blue"
  44. local color2 = "Pastel Blue"
  45. local oplevel = 1
  46. Humanoid.Animator.Parent = nil
  47. Character.Animate.Parent = nil
  48. local newFakeMotor = function(part0, part1, c0, c1)
  49.  
  50. local w = Instance.new("Motor", part0)
  51. w.Part0 = part0
  52. w.Part1 = part1
  53. w.C0 = c0
  54. w.C1 = c1
  55. return w
  56. end
  57.  
  58. clerp = function(a, b, t)
  59.  
  60. return a:lerp(b, t)
  61. end
  62.  
  63. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  64. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  65. local RW = newFakeMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  66. local LW = newFakeMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  67. local RH = newFakeMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  68. local LH = newFakeMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  69. RootJoint.C1 = CFrame.new(0, 0, 0)
  70. RootJoint.C0 = CFrame.new(0, 0, 0)
  71. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  72. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  73. local rarmc1 = RW.C1
  74. local larmc1 = LW.C1
  75. local rlegc1 = RH.C1
  76. local llegc1 = LH.C1
  77. local resetc1 = false
  78. PlayAnimationFromTable = function(table, speed, bool)
  79.  
  80. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  81. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  82. RW.C0 = clerp(RW.C0, table[3], speed)
  83. LW.C0 = clerp(LW.C0, table[4], speed)
  84. RH.C0 = clerp(RH.C0, table[5], speed)
  85. LH.C0 = clerp(LH.C0, table[6], speed)
  86. if bool == true and resetc1 == false then
  87. resetc1 = true
  88. RootJoint.C1 = RootJoint.C1
  89. Torso.Neck.C1 = Torso.Neck.C1
  90. RW.C1 = rarmc1
  91. LW.C1 = larmc1
  92. RH.C1 = rlegc1
  93. LH.C1 = llegc1
  94. end
  95. end
  96.  
  97. ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui)
  98. ArtificialHB.Name = "Heartbeat"
  99. Player.PlayerGui:WaitForChild("Heartbeat")
  100. frame = 0.033333333333333
  101. tf = 0
  102. allowframeloss = false
  103. tossremainder = false
  104. lastframe = tick()
  105. Player.PlayerGui.Heartbeat:Fire()
  106. local gg = false
  107. game:GetService("RunService").Heartbeat:connect(function(s, p)
  108.  
  109. if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then
  110. gg = true
  111. end
  112. if gg == true then
  113. return
  114. end
  115. tf = tf + s
  116. if frame <= tf then
  117. if allowframeloss then
  118. Player.PlayerGui.Heartbeat:Fire()
  119. lastframe = tick()
  120. else
  121. for i = 1, math.floor(tf / frame) do
  122. Player.PlayerGui.Heartbeat:Fire()
  123. end
  124. lastframe = tick()
  125. end
  126. if tossremainder then
  127. tf = 0
  128. else
  129. tf = tf - frame * math.floor(tf / frame)
  130. end
  131. end
  132. end
  133. )
  134. swait = function(num)
  135.  
  136. if num == 0 or num == nil then
  137. ArtificialHB.Event:wait()
  138. else
  139. for i = 0, num do
  140. ArtificialHB.Event:wait()
  141. end
  142. end
  143. end
  144.  
  145. local RbxUtility = LoadLibrary("RbxUtility")
  146. local Create = RbxUtility.Create
  147. RemoveOutlines = function(part)
  148.  
  149. part.TopSurface = 10
  150. end
  151.  
  152. local co1 = 60
  153. local co2 = 20
  154. local co3 = 30
  155. local co4 = 30
  156. local cooldown1 = 60
  157. local cooldown2 = 0
  158. local cooldown3 = 0
  159. local cooldown4 = 0
  160. local skillcolorscheme = BrickColor.new("Fossil").Color
  161. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  162. makeframe = function(par, trans, pos, size, color)
  163.  
  164. local frame = Instance.new("Frame", par)
  165. frame.BackgroundTransparency = trans
  166. frame.BorderSizePixel = 0
  167. frame.Position = pos
  168. frame.Size = size
  169. frame.BackgroundColor3 = color
  170. return frame
  171. end
  172.  
  173. makelabel = function(par, text)
  174.  
  175. local label = Instance.new("TextLabel", par)
  176. label.BackgroundTransparency = 1
  177. label.Size = UDim2.new(1, 0, 1, 0)
  178. label.Position = UDim2.new(0, 0, 0, 0)
  179. label.TextColor3 = Color3.new(255, 255, 255)
  180. label.TextStrokeTransparency = 0
  181. label.FontSize = Enum.FontSize.Size32
  182. label.Font = Enum.Font.SourceSansLight
  183. label.BorderSizePixel = 0
  184. label.TextScaled = true
  185. label.Text = text
  186. end
  187.  
  188. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  189. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  190. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  191. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  192. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  193. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  194. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  195. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  196. text1 = Instance.new("TextLabel", framesk1)
  197. text1.BackgroundTransparency = 1
  198. text1.Size = UDim2.new(1, 0, 1, 0)
  199. text1.Position = UDim2.new(0, 0, 0, 0)
  200. text1.TextColor3 = Color3.new(255, 255, 255)
  201. text1.TextStrokeTransparency = 0
  202. text1.FontSize = Enum.FontSize.Size18
  203. text1.Font = Enum.Font.SourceSansLight
  204. text1.BorderSizePixel = 0
  205. text1.TextScaled = true
  206. text1.Text = "[Z]\n N/A"
  207. text2 = Instance.new("TextLabel", framesk2)
  208. text2.BackgroundTransparency = 1
  209. text2.Size = UDim2.new(1, 0, 1, 0)
  210. text2.Position = UDim2.new(0, 0, 0, 0)
  211. text2.TextColor3 = Color3.new(255, 255, 255)
  212. text2.TextStrokeTransparency = 0
  213. text2.FontSize = Enum.FontSize.Size18
  214. text2.Font = Enum.Font.SourceSansLight
  215. text2.BorderSizePixel = 0
  216. text2.TextScaled = true
  217. text2.Text = "[X]\n Reload"
  218. text3 = Instance.new("TextLabel", framesk3)
  219. text3.BackgroundTransparency = 1
  220. text3.Size = UDim2.new(1, 0, 1, 0)
  221. text3.Position = UDim2.new(0, 0, 0, 0)
  222. text3.TextColor3 = Color3.new(255, 255, 255)
  223. text3.TextStrokeTransparency = 0
  224. text3.FontSize = Enum.FontSize.Size18
  225. text3.Font = Enum.Font.SourceSansLight
  226. text3.BorderSizePixel = 0
  227. text3.TextScaled = false
  228. text3.Text = "[C]\n Armageddon"
  229. text4 = Instance.new("TextLabel", framesk4)
  230. text4.BackgroundTransparency = 1
  231. text4.Size = UDim2.new(1, 0, 1, 0)
  232. text4.Position = UDim2.new(0, 0, 0, 0)
  233. text4.TextColor3 = Color3.new(255, 255, 255)
  234. text4.TextStrokeTransparency = 0
  235. text4.FontSize = Enum.FontSize.Size18
  236. text4.Font = Enum.Font.SourceSansLight
  237. text4.BorderSizePixel = 0
  238. text4.TextScaled = true
  239. text4.Text = "[V]\n Bullet Storm"
  240. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  241.  
  242. 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})
  243. RemoveOutlines(Part)
  244. return Part
  245. end
  246.  
  247. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  248.  
  249. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  250. if Mesh == "SpecialMesh" then
  251. Msh.MeshType = MeshType
  252. Msh.MeshId = MeshId
  253. end
  254. return Msh
  255. end
  256.  
  257. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  258.  
  259. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  260. return Weld
  261. end
  262.  
  263. CFuncs = {
  264. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  265.  
  266. 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})
  267. RemoveOutlines(Part)
  268. return Part
  269. end
  270. }
  271. ,
  272. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  273.  
  274. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  275. if Mesh == "SpecialMesh" then
  276. Msh.MeshType = MeshType
  277. Msh.MeshId = MeshId
  278. end
  279. return Msh
  280. end
  281. }
  282. ,
  283. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  284.  
  285. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  286. if Mesh == "SpecialMesh" then
  287. Msh.MeshType = MeshType
  288. Msh.MeshId = MeshId
  289. end
  290. return Msh
  291. end
  292. }
  293. ,
  294. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  295.  
  296. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  297. return Weld
  298. end
  299. }
  300. ,
  301. Sound = {Create = function(id, par, vol, pit)
  302.  
  303. coroutine.resume(coroutine.create(function()
  304.  
  305. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  306. wait()
  307. S:play()
  308. game:GetService("Debris"):AddItem(S, 6)
  309. end
  310. ))
  311. end
  312. }
  313. ,
  314. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  315.  
  316. 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})
  317. return fp
  318. end
  319. }
  320. }
  321. Handle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  322. 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))
  323. FakeHandle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  324. 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))
  325. Motor = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Black", "Motor", Vector3.new(0.50999999, 0.430000126, 0.460000008))
  326. 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))
  327. CreateMesh("CylinderMesh", Motor, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  328. Guhn = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Guhn", Vector3.new(4,.8,.6))
  329. 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))
  330. Barrel = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Barrel", Vector3.new(0.200000003, 0.290000021, 0.420000017))
  331. 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))
  332. CreateMesh("BlockMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  333. Part = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.00000003, 0.3))
  334. 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))
  335. Hitbox = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(4,.8,.6))
  336. 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))
  337. FakeMotor = CreatePart(m, Enum.Material.Metal, 0.20000000298023, 1, "Medium stone grey", "Part", Vector3.new(1.60000002, 5.46000004, 1.48000002))
  338. 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))
  339. FakeMag = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(1.2, .3, 0.3))
  340. 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))
  341. Mag = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.2, 0.3))
  342. 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))
  343. Part2 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, .85,.65))
  344. 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))
  345. Part3 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(1.5, .3,.65))
  346. 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))
  347. Part4 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(1.5, .3,.65))
  348. 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))
  349.  
  350.  
  351. rayCast = function(Position, Direction, Range, Ignore)
  352.  
  353. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  354. end
  355.  
  356. local GetNearest = function(obj, distance)
  357.  
  358. local last, lastx = distance + 1, nil
  359. for i,v in pairs(workspace:GetChildren()) do
  360. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  361. local t = v.Torso
  362. local dist = (t.Position - obj.Position).magnitude
  363. if dist <= distance and dist < last then
  364. last = dist
  365. lastx = v
  366. end
  367. end
  368. end
  369. return lastx
  370. end
  371.  
  372. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  373.  
  374. if hit.Parent == nil then
  375. return
  376. end
  377. local h = hit.Parent:FindFirstChild("Humanoid")
  378. for _,v in pairs(hit.Parent:children()) do
  379. if v:IsA("Humanoid") then
  380. h = v
  381. end
  382. end
  383. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  384. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  385. return
  386. end
  387. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  388. game:GetService("Debris"):AddItem(c, 0.5)
  389. if HitSound ~= nil and HitPitch ~= nil then
  390. end
  391. local Damage = math.random(minim, maxim)
  392. local blocked = false
  393. local block = hit.Parent:findFirstChild("Block")
  394. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  395. blocked = true
  396. block.Value = block.Value - 1
  397. print(block.Value)
  398. end
  399. if blocked == false then
  400. h.Health = h.Health - Damage*oplevel
  401. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -(Damage*oplevel), 1.5, Part.BrickColor.Color)
  402. else
  403. h.Health = h.Health - Damage / 2
  404. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -(Damage*oplevel), 1.5, Part.BrickColor.Color)
  405. end
  406. if Type == "Knockdown" then
  407. local hum = hit.Parent.Humanoid
  408. hum.PlatformStand = true
  409. coroutine.resume(coroutine.create(function(HHumanoid)
  410.  
  411. swait(1)
  412. HHumanoid.PlatformStand = false
  413. end
  414. ), hum)
  415. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  416. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  417. 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})
  418. game:GetService("Debris"):AddItem(bodvol, 0.5)
  419. game:GetService("Debris"):AddItem(rl, 0.5)
  420. elseif Type == "Normal" then
  421. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  422. if knockback > 0 then
  423. vp.Parent = hit.Parent.Torso
  424. end
  425. game:GetService("Debris"):AddItem(vp, 0.5)
  426. elseif Type == "Up" then
  427. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  428. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  429. elseif Type == "DarkUp" then
  430. coroutine.resume(coroutine.create(function()
  431.  
  432. for i = 0, 1, 0.1 do
  433. swait()
  434. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  435. end
  436. end
  437. ))
  438. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  439. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  440. elseif Type == "Snare" then
  441. 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})
  442. game:GetService("Debris"):AddItem(bp, 1)
  443. elseif Type == "Curse" then
  444. CreateSound("http://roblox.com/asset/?id=283389706", Torso, 1, 1)
  445. for i = 0, 1, 0.025 do
  446. swait(30)
  447. SphereEffect(BrickColor.new("Bright violet"), hit.Parent.Torso.CFrame, 1, 1, 1, 3, 3, 3, 0.07)
  448. hit.Parent.Humanoid:TakeDamage(1)
  449. end
  450. elseif Type == "Freeze" then
  451. 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})
  452. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  453. hit.Parent.Torso.Anchored = true
  454. coroutine.resume(coroutine.create(function(Part)
  455.  
  456. swait(1.5)
  457. Part.Anchored = false
  458. end
  459. ), hit.Parent.Torso)
  460. game:GetService("Debris"):AddItem(BodPos, 6)
  461. game:GetService("Debris"):AddItem(BodGy, 6)
  462. end
  463. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  464. game:GetService("Debris"):AddItem(debounce, Delay)
  465. c = Instance.new("ObjectValue")
  466. c.Name = "creator"
  467. c.Value = Player
  468. c.Parent = h
  469. game:GetService("Debris"):AddItem(c, 0.5)
  470. end
  471. end
  472.  
  473. ShowDamage = function(Pos, Text, Time, Color)
  474.  
  475. local Rate = 0.033333333333333
  476. if not Pos then
  477. local Pos = Vector3.new(0, 0, 0)
  478. end
  479. local Text = Text or ""
  480. local Time = Time or 2
  481. if not Color then
  482. local Color = Color3.new(1, 0, 1)
  483. end
  484. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  485. EffectPart.Anchored = true
  486. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  487. 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})
  488. game.Debris:AddItem(EffectPart, Time + 0.1)
  489. EffectPart.Parent = game:GetService("Workspace")
  490. delay(0, function()
  491.  
  492. local Frames = Time / Rate
  493. for Frame = 1, Frames do
  494. wait(Rate)
  495. local Percent = Frame / Frames
  496. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  497. TextLabel.TextTransparency = Percent
  498. end
  499. if EffectPart and EffectPart.Parent then
  500. EffectPart:Destroy()
  501. end
  502. end
  503. )
  504. end
  505.  
  506. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  507.  
  508. for _,c in pairs(workspace:children()) do
  509. local hum = c:findFirstChild("Humanoid")
  510. if hum ~= nil then
  511. local head = c:findFirstChild("Torso")
  512. if head ~= nil then
  513. local targ = head.Position - Part.Position
  514. local mag = targ.magnitude
  515. if mag <= magni and c.Name ~= Player.Name then
  516. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=160432334", 1)
  517. end
  518. end
  519. end
  520. end
  521. end
  522.  
  523. EffectModel = Instance.new("Model", Character)
  524. EffectModel.Name = "Effects"
  525. Effects = {
  526. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  527.  
  528. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  529. prt.Anchored = true
  530. prt.CFrame = cframe
  531. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  532. game:GetService("Debris"):AddItem(prt, 10)
  533. if Type == 1 or Type == nil then
  534. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  535. else
  536. if Type == 2 then
  537. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  538. end
  539. end
  540. end
  541. }
  542. ,
  543. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  544.  
  545. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  546. prt.Anchored = true
  547. prt.CFrame = cframe
  548. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  549. game:GetService("Debris"):AddItem(prt, 10)
  550. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  551. end
  552. }
  553. ,
  554. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  555.  
  556. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  557. prt.Anchored = true
  558. prt.CFrame = cframe
  559. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  560. game:GetService("Debris"):AddItem(prt, 10)
  561. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  562. end
  563. }
  564. ,
  565. Cloud = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  566.  
  567. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  568. prt.Anchored = true
  569. prt.CFrame = cframe
  570. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  571. game:GetService("Debris"):AddItem(prt, 10)
  572. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  573. end
  574. }
  575. ,
  576. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  577.  
  578. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  579. prt.Anchored = true
  580. prt.CFrame = cframe
  581. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  582. game:GetService("Debris"):AddItem(prt, 10)
  583. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  584. end
  585. }
  586. ,
  587. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  588.  
  589. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  590. prt.Anchored = true
  591. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  592. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  593. local num = math.random(10, 50) / 1000
  594. game:GetService("Debris"):AddItem(prt, 10)
  595. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  596. end
  597. }
  598. }
  599. local rev = Instance.new("Sound", Barrel)
  600. rev.Volume = 0.05
  601. rev.Pitch = 1.2
  602. rev.Looped = false
  603. rev.SoundId = "rbxassetid://357820124"
  604. rev.MaxDistance = 1000
  605. local spim = Instance.new("Sound", Barrel)
  606. spim.Volume = 1
  607. spim.Pitch = 1
  608. spim.Looped = true
  609. spim.SoundId = "rbxassetid://167882734"
  610. spim.MaxDistance = 1000
  611. local aiming = false
  612. local nu = 0
  613. Aim = function()
  614.  
  615. aiming = true
  616. attack = true
  617. Humanoid.WalkSpeed = 2
  618. Humanoid.JumpPower = 0
  619. while aiming do
  620. swait()
  621. if rev.Playing == false and spim.Playing == false then
  622. end
  623. if nu < 360 then
  624. nu = nu + 20
  625. else
  626. nu = 0
  627. end
  628. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(nu), math.rad(0)), 0.3)
  629. end
  630. end
  631.  
  632. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  633.  
  634. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  635. prt.Anchored = true
  636. prt.CFrame = cframe
  637. prt.Material = "Neon"
  638. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  639. game:GetService("Debris"):AddItem(prt, 10)
  640. coroutine.resume(coroutine.create(function(Part, Mesh)
  641.  
  642. for i = 0, 1, delay do
  643. swait()
  644. Part.Transparency = i
  645. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  646. end
  647. Part.Parent = nil
  648. end
  649. ), prt, msh)
  650. end
  651.  
  652. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  653.  
  654. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  655. prt.Anchored = true
  656. prt.CFrame = cframe
  657. prt.Material = "neon"
  658. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  659. game:GetService("Debris"):AddItem(prt, 10)
  660. if Type == 1 or Type == nil then
  661. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  662. else
  663. if Type == 2 then
  664. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  665. end
  666. end
  667. end
  668.  
  669. shoottraildd = function(mouse, partt, SpreadAmount)
  670.  
  671. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  672. local MainPos = partt.Position
  673. local MainPos2 = mouse.Hit.p + SpreadVectors
  674. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  675. local speed = 100
  676. local num = 10
  677. coroutine.resume(coroutine.create(function()
  678.  
  679. repeat
  680. swait()
  681. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  682. local mag = (MainPos - pos).magnitude
  683. Laser(BrickColor.new(color1), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.25, 0, -0.25, 0.15)
  684. MainPos = MainPos + MouseLook.lookVector * speed
  685. num = num - 1
  686. MouseLook = MouseLook * angles(math.rad(0), 0, 0)
  687. if hit ~= nil then
  688. num = 0
  689. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  690. refpart.Anchored = true
  691. refpart.CFrame = CFrame.new(pos)
  692. game:GetService("Debris"):AddItem(refpart, 1)
  693. end
  694. do
  695. if num <= 0 then
  696. local refpart2 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  697. refpart2.Anchored = true
  698. refpart2.CFrame = CFrame.new(pos)
  699. game:GetService("Debris"):AddItem(refpart2, 1)
  700. if hit ~= nil then
  701. MagniDamage(refpart2, 5, 1, 1, 1, "Normal")
  702. for i = 0,9,1 do
  703. Effects.Block.Create(color1, refpart2.CFrame, 1, 1, 1, 2,2,2, 0.05)
  704. swait(5)
  705. end
  706. Effects.Block.Create(color1, refpart2.CFrame, 1,1,1,10,10,10,0.05)
  707. Effects.Block.Create(color2, refpart2.CFrame, 1, 1, 1, 25,2.5,2.5, 0.05)
  708. MagniDamage(refpart2, 15, 1, 1, 1, "Normal")
  709. end
  710. end
  711. end
  712. until num <= 0
  713. end
  714. ))
  715. end
  716.  
  717. shoottraildd2 = function(mouse, partt, SpreadAmount)
  718.  
  719. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  720. local MainPos = partt.Position
  721. local MainPos2 = mouse.Hit.p + SpreadVectors
  722. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  723. local speed = 100
  724. local num = 10
  725. coroutine.resume(coroutine.create(function()
  726.  
  727. repeat
  728. swait()
  729. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  730. local mag = (MainPos - pos).magnitude
  731. Laser(BrickColor.new(color1), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.25, 0, -0.25, 0.15)
  732. MainPos = MainPos + MouseLook.lookVector * speed
  733. num = num - 1
  734. MouseLook = MouseLook * angles(math.rad(0), 0, 0)
  735. if hit ~= nil then
  736. num = 0
  737. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  738. refpart.Anchored = true
  739. refpart.CFrame = CFrame.new(pos)
  740. game:GetService("Debris"):AddItem(refpart, 1)
  741. end
  742. do
  743. if num <= 0 then
  744. local refpart2 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  745. refpart2.Anchored = true
  746. refpart2.CFrame = CFrame.new(pos)
  747. game:GetService("Debris"):AddItem(refpart2, 1)
  748. if hit ~= nil then
  749. MagniDamage(refpart2, 5, 1, 1, 1, "Normal")
  750. for i = 0,9,1 do
  751. Effects.Block.Create("Alder", refpart2.CFrame, 1, 1, 1, 2,2,2, 0.05)
  752. swait(5)
  753. end
  754. Effects.Block.Create("Royal purple", refpart2.CFrame, 1,1,1,10,10,10,0.05)
  755. Effects.Block.Create("Alder", refpart2.CFrame, 1, 1, 1, 25,2.5,2.5, 0.05)
  756. MagniDamage(refpart2, 15, 5, 5, 0, "Normal")
  757. for i = 9, 1 do
  758. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 1
  759. swait(2)
  760. end
  761. end
  762. end
  763. end
  764. until num <= 0
  765. end
  766. ))
  767. end
  768.  
  769. shoottraildd3 = function(mouse, partt, SpreadAmount)
  770.  
  771. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  772. local MainPos = partt.Position
  773. local MainPos2 = mouse.Hit.p + SpreadVectors
  774. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  775. local speed = 100
  776. local num = 10
  777. coroutine.resume(coroutine.create(function()
  778.  
  779. repeat
  780. swait()
  781. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  782. local mag = (MainPos - pos).magnitude
  783. Laser(BrickColor.new(color1), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.25, 0, -0.25, 0.15)
  784. MainPos = MainPos + MouseLook.lookVector * speed
  785. num = num - 1
  786. MouseLook = MouseLook * angles(math.rad(0), 0, 0)
  787. if hit ~= nil then
  788. num = 0
  789. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  790. refpart.Anchored = true
  791. refpart.CFrame = CFrame.new(pos)
  792. game:GetService("Debris"):AddItem(refpart, 1)
  793. end
  794. do
  795. if num <= 0 then
  796. local refpart2 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  797. refpart2.Anchored = true
  798. refpart2.CFrame = CFrame.new(pos)
  799. game:GetService("Debris"):AddItem(refpart2, 1)
  800. if hit ~= nil then
  801. MagniDamage(refpart2, 5, 1, 1, 1, "Normal")
  802. for i = 0,9,1 do
  803. Effects.Block.Create(color1, refpart2.CFrame, 1, 1, 1, 2,2,2, 0.05)
  804. swait(5)
  805. end
  806. Effects.Block.Create(color1, refpart2.CFrame, 1,1,1,10,10,10,0.05)
  807. Effects.Block.Create(color2, refpart2.CFrame, 1, 1, 1, 25,2.5,2.5, 0.05)
  808. MagniDamage(refpart2, 15, 1, 1, 1, "Normal")
  809. end
  810. end
  811. end
  812. until num <= 0
  813. end
  814. ))
  815. end
  816.  
  817. IceMortar = function()
  818.  
  819. local dacf = Head.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  820. local icepart1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", Vector3.new())
  821. icepart1.Anchored = true
  822. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  823. icepart1.CFrame = dacf
  824. local cfinc = 99999
  825. icepart1.Transparency = 1
  826. CFuncs.Sound.Create("rbxassetid://192410089", icepart1, 1, 1)
  827. game:GetService("Debris"):AddItem(icepart1, 1)
  828. 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
  829. local TheHit = mouse.Hit.p
  830. local MouseLook = cn((icepart1.Position + TheHit) / 2, TheHit + spread)
  831. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  832. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  833. local test1, dist1 = mouse.Hit.p, nil
  834. if target1 ~= nil then
  835. cfda = target1.Position + Vector3.new(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  836. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  837. local d1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Effect", Vector3.new())
  838. d1.Anchored = true
  839. d1.CFrame = cn(pos2)
  840. MagniDamage(d1, 8, 3, 5, -10, "Normal")
  841. Effects.Sphere.Create(BrickColor.new("White"), Barrel.CFrame, 1, 1, 1, 3, 3, 3, 0.07)
  842. Effects.Cloud.Create(target1.BrickColor, Barrel.CFrame, 2, 1, 2, 0.1, 2, 0.1, 0.03)
  843. 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)
  844. Effects.Sphere.Create(BrickColor.new("Bright yellow"), cn(pos2), 1, 1, 1, 3, 3, 3, 0.07)
  845. Effects.Block.Create(BrickColor.new("Bright red"), cn(pos2), 1, 1, 1, 3, 3, 3, 0.07)
  846. Effects.Sphere.Create(BrickColor.new("White"), cn(pos2), 1, 1, 1, 10, 10, 10, 0.07)
  847. Effects.Ring.Create(BrickColor.new("Bright yellow"), cn(pos2), 0.1, 9999, 0.1, 0.5, 10, 0.5, 0.07)
  848. game.Debris:AddItem(d1, 0.5)
  849. end
  850. end
  851.  
  852. Hee = function()
  853.  
  854. local dacf = Head.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  855. local icepart1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", Vector3.new())
  856. icepart1.Anchored = true
  857. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
  858. icepart1.CFrame = dacf
  859. local cfinc = 99999
  860. icepart1.Transparency = 1
  861. game:GetService("Debris"):AddItem(icepart1, 1)
  862. local spread = Vector3.new((math.random(-100, 100) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-100, 100) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + Vector3.new(0, -1, 0))).magnitude / 100
  863. local TheHit = Torso.position
  864. local MouseLook = cn((icepart1.Position + TheHit) / 2, TheHit + spread)
  865. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  866. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  867. local test1, dist1 = mouse.Hit.p, nil
  868. if target1 ~= nil then
  869. cfda = target1.Position + Vector3.new(math.random(-3000, 3000) / 100, 10, math.random(-3000, 3000) / 100)
  870. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  871. local d1 = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Magenta"), "Effect", Vector3.new())
  872. d1.Anchored = true
  873. d1.CFrame = cn(pos2)
  874. for i = 0, 2 do
  875. MagniDamage(d1, 15, 3, 5, 0, "Normal")
  876. Effects.Block.Create(color1, cn(pos2), 1,1,1,20,20,20,0.05)
  877. Effects.Block.Create(color2, cn(pos2), 1, 1, 1, 40,2.5,2.5, 0.05)
  878. Effects.Ring.Create(BrickColor.new(color2), cn(pos2), 0.1, 9999, 0.1, 10, 60, 10, 0.07)
  879. game.Debris:AddItem(d1, 0.5)
  880. swait(.1)
  881. end
  882. end
  883. end
  884.  
  885. local soe = Instance.new("Sound", Barrel)
  886. soe.Volume = 0.25
  887. soe.Pitch = 1
  888. soe.Looped = true
  889. soe.SoundId = "rbxassetid://338565873"
  890. soe.MaxDistance = 1000
  891. local shoot = false
  892. local hot = false
  893. fire = function()
  894.  
  895. hot = true
  896. shoot = true
  897. while shoot do
  898. while shoot do
  899. if shoot == true then
  900. swait(2.5)
  901. if cooldown1 >= 4 then
  902. soe:Play()
  903. cooldown1 = cooldown1 - 2
  904. shoottraildd(mouse, Barrel, 1)
  905. else
  906. soe:Stop()
  907. end
  908. end
  909. end
  910. soe:Stop()
  911. end
  912. hot = false
  913. end
  914.  
  915. baka = function()
  916.  
  917. Humanoid.WalkSpeed = 2
  918. Humanoid.JumpPower = 0
  919. attack = true
  920. for i = 0, 1, 0.5 do
  921. swait()
  922. 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)
  923. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  924. end
  925. for i = 1, 10 do
  926. for i = 0, 1, 0.5 do
  927. swait()
  928. 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)
  929. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  930. end
  931. IceMortar()
  932. for i = 0, 1, 0.5 do
  933. swait()
  934. 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)
  935. end
  936. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  937. end
  938. Humanoid.WalkSpeed = 14
  939. Humanoid.JumpPower = 50
  940. attack = false
  941. end
  942.  
  943. bulletrain = function()
  944.  
  945. attack = true
  946. shoot = true
  947. Humanoid.WalkSpeed = 2
  948. Humanoid.JumpPower = 0
  949. for i = 0, 1, 0.5 do
  950. swait()
  951. 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)
  952. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-80)), 0.3)
  953. end
  954. soe:Play()
  955. for i = 1, 5 do
  956. for i = 0, 1, 0.5 do
  957. swait()
  958. 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)
  959. end
  960. Effects.Ring.Create(BrickColor.new("Bright yellow"), Barrel.CFrame, 0.05, 9999, 0.05, 0.5, 10, 0.5, 0.07)
  961. coroutine.resume(coroutine.create(function()
  962.  
  963. swait(50)
  964. for i = 0, 3 do
  965. swait()
  966. Hee()
  967. end
  968. end
  969. ))
  970. for i = 0, 1, 0.5 do
  971. swait()
  972. 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)
  973. end
  974. end
  975. Humanoid.WalkSpeed = 16
  976. Humanoid.JumpPower = 50
  977. shoot = false
  978. attack = false
  979. end
  980.  
  981. reload = function()
  982.  
  983. attack = true
  984. CFuncs.Sound.Create("rbxassetid://266022905", Torso, 1, 1)
  985. Humanoid.WalkSpeed = 16
  986. Humanoid.JumpPower = 50
  987. FakeMag.Transparency=0
  988. Mag.Transparency= 1
  989. 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)
  990. 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)
  991. RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(50), math.rad(-60), math.rad(-20)), 0.3)
  992. 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)
  993. 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)
  994. 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)
  995. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  996. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  997. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  998. swait(45)
  999. 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)
  1000. 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)
  1001. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1002. 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)
  1003. 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)
  1004. 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)
  1005. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1006. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1007. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1008. FakeMag.Transparency=1
  1009. Mag.Transparency=0
  1010. cooldown1 = 60
  1011. Humanoid.WalkSpeed = 16
  1012. Humanoid.JumpPower = 50
  1013. attack = false
  1014. end
  1015.  
  1016. mouse.Button1Down:connect(function()
  1017.  
  1018. if attack == false and aiming == false then
  1019. Aim()
  1020. end
  1021. end
  1022. )
  1023. mouse.Button1Up:connect(function()
  1024.  
  1025. if attack == true and aiming == true then
  1026. attack = false
  1027. aiming = false
  1028. Humanoid.WalkSpeed = 14
  1029. Humanoid.JumpPower = 50
  1030. shoot = false
  1031. end
  1032. end
  1033. )
  1034. mouse.KeyDown:connect(function(k)
  1035.  
  1036. k = k:lower()
  1037. if attack == true and aiming == true and hot == false and k == "z" then
  1038. fire()
  1039. else
  1040. if attack == false and aiming == false and hot == false and k == "c" --[[and co3 <= cooldown3]] then
  1041. cooldown3 = 0
  1042. baka()
  1043. else
  1044. if attack == false and aiming == false and hot == false and k == "v" --[[and co4 <= cooldown4]] then
  1045. cooldown4 = 0
  1046. local snd = Instance.new("Sound")
  1047. CFuncs.Sound.Create("rbxassetid://831135257", Torso, 1, math.random(1))
  1048. snd.Name = "hfghfghfghfghf"
  1049. snd.SoundId = "rbxassetid://364202503"
  1050. snd.Volume = 0.1 --Vol
  1051. snd.Pitch = 1 --Pitch
  1052. snd.Looped = false
  1053. snd.PlayOnRemove = false
  1054. snd.archivable = false
  1055. snd.Parent = game.Workspace
  1056. swait()
  1057. snd:play()
  1058. Effects.Sphere.Create(color1, Torso.CFrame, 1,1,1,10,10,10,0.05)
  1059. for i = 0, 74 do
  1060. swait(.5)
  1061. Hee()
  1062. end
  1063. for i = 0, 24 do
  1064. Effects.Sphere.Create("New Yeller", Torso.CFrame, 1,1,1,60,60,60,0.05)
  1065. swait(3)
  1066. end
  1067.  
  1068. Guhn.Material = "Neon"
  1069. Guhn.BrickColor = BrickColor.new"New Yeller"
  1070. color1 = "New Yeller"
  1071. color2 = "Really black"
  1072. frame = 0.0233
  1073. oplevel = 2
  1074.  
  1075.  
  1076. else
  1077. if attack == false and aiming == false and hot == false and k == "x" --[[and co2 <= cooldown2]] then
  1078. cooldown2 = 0
  1079. reload()
  1080. else
  1081. if k == "b" then
  1082. workspace.hfghfghfghfghf:destroy()
  1083. Guhn.Material = "Ice"
  1084. Guhn.BrickColor = BrickColor.new"Bright blue"
  1085. color1 = "Really blue"
  1086. color2 = "Pastel Blue"
  1087. frame = 0.03333333333333
  1088. oplevel = 1
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end
  1094. end
  1095. )
  1096. mouse.KeyUp:connect(function(k)
  1097.  
  1098. k = k:lower()
  1099. if attack == true and aiming == true and hot == true and k == "z" then
  1100. shoot = false
  1101. end
  1102. end
  1103. )
  1104. updateskills = function()
  1105.  
  1106. if aiming == false then
  1107. text1.Text = "[Z]\n N/A"
  1108. else
  1109. text1.Text = "[Z]\n Fire"
  1110. end
  1111. if cooldown2 <= co2 then
  1112. cooldown2 = cooldown2 + 0.033333333333333
  1113. end
  1114. if cooldown3 <= co3 then
  1115. cooldown3 = cooldown3 + 0.033333333333333
  1116. end
  1117. if cooldown4 <= co4 then
  1118. cooldown4 = cooldown4 + 0.033333333333333
  1119. end
  1120. end
  1121.  
  1122. Humanoid.WalkSpeed = 14
  1123. while true do
  1124. swait()
  1125. updateskills()
  1126. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1127. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1128. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1129. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1130. if shoot == false then
  1131. soe:Stop()
  1132. end
  1133. if aiming == false then
  1134. spim:Stop()
  1135. end
  1136. if aiming == true then
  1137. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1138. local direction = aim.lookVector
  1139. local headingA = math.atan2(direction.x, direction.z)
  1140. headingA = math.deg(headingA)
  1141. Humanoid.AutoRotate = false
  1142. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1143. else
  1144. --do
  1145. Humanoid.AutoRotate = true
  1146. end
  1147. for i,v in pairs(Character:GetChildren()) do
  1148. if v:IsA("Part") then
  1149. v.Material = "SmoothPlastic"
  1150. else
  1151. if v:IsA("Hat") then
  1152. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1153. end
  1154. end
  1155. end
  1156. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1157. velocity = RootPart.Velocity.y
  1158. sine = sine + change
  1159. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1160. if equipped == true or equipped == false then
  1161. if 16565656565656565 < RootPart.Velocity.y and hit == nil then
  1162. Anim = "Jump"
  1163. if attack == false then
  1164. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  1165. 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)
  1166. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -0.3) * angles(math.rad(80), math.rad(-50), math.rad(30)), 0.3)
  1167. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.4, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1168. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3)
  1169. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1170. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1171. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1172. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1173. end
  1174. else
  1175. if RootPart.Velocity.y < -65656565665561 and hit == nil then
  1176. Anim = "Fall"
  1177. if attack == false then
  1178. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(20), math.rad(-30), math.rad(0)), 0.3)
  1179. 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)
  1180. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -0.3) * angles(math.rad(80), math.rad(-50), math.rad(30)), 0.3)
  1181. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.4, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1182. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3)
  1183. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1184. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1185. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1186. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1187. end
  1188. else
  1189. if Torsovelocity < 1 and hit ~= nil then
  1190. Anim = "Idle"
  1191. if attack == false then
  1192. change = 1
  1193. 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)
  1194. 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)
  1195. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1196. 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)
  1197. RH.C0 = clerp(RH.C0, cf(.5, -2, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1198. LH.C0 = clerp(LH.C0, cf(-.5, -2, 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1199. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)end
  1200. else
  1201. if 2 < Torsovelocity and hit ~= nil then
  1202. Anim = "Walk"
  1203. if attack == false then
  1204. 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)
  1205. 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)
  1206. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1207. 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)
  1208. 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)
  1209. 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)
  1210. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-130)), 0.3)
  1211. FakeMotorWeld.C0 = clerp(FakeMotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1212. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-40), math.rad(0), math.rad(-120)), 0.3)
  1213. end
  1214. end
  1215. end
  1216. end
  1217. end
  1218. end
  1219. if 0 < #Effects then
  1220. for e = 1, #Effects do
  1221. if Effects[e] ~= nil then
  1222. local Thing = Effects[e]
  1223. if Thing ~= nil then
  1224. local Part = Thing[1]
  1225. local Mode = Thing[2]
  1226. local Delay = Thing[3]
  1227. local IncX = Thing[4]
  1228. local IncY = Thing[5]
  1229. local IncZ = Thing[6]
  1230. if Thing[1].Transparency <= 1 then
  1231. if Thing[2] == "Block1" then
  1232. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1233. Mesh = Thing[1].Mesh
  1234. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1235. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1236. else
  1237. if Thing[2] == "Block2" then
  1238. Thing[1].CFrame = Thing[1].CFrame
  1239. Mesh = Thing[7]
  1240. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1241. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1242. else
  1243. if Thing[2] == "Cylinder" then
  1244. Mesh = Thing[1].Mesh
  1245. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1246. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1247. else
  1248. if Thing[2] == "Blood" then
  1249. Mesh = Thing[7]
  1250. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1251. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1252. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1253. else
  1254. if Thing[2] == "Elec" then
  1255. Mesh = Thing[1].Mesh
  1256. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1257. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1258. else
  1259. if Thing[2] == "Disappear" then
  1260. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1261. else
  1262. if Thing[2] == "Shatter" then
  1263. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1264. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1265. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1266. Thing[6] = Thing[6] + Thing[5]
  1267. end
  1268. end
  1269. end
  1270. end
  1271. end
  1272. end
  1273. end
  1274. else
  1275. Part.Parent = nil
  1276. table.remove(Effects, e)
  1277. end
  1278. end
  1279. end
  1280. end
  1281. end
  1282. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement