Robert666121

Engineer

Aug 2nd, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CV="White"
  2.  
  3. local plr = game:service'Players'.LocalPlayer
  4. local char = plr.Character
  5. local mouse = plr:GetMouse()
  6. local humanoid = char:findFirstChild("Humanoid")
  7. local torso = char:findFirstChild("Torso")
  8. local head = char.Head
  9. local ra = char:findFirstChild("Right Arm")
  10. local la = char:findFirstChild("Left Arm")
  11. local rl = char:findFirstChild("Right Leg")
  12. local ll = char:findFirstChild("Left Leg")
  13. local rs = torso:findFirstChild("Right Shoulder")
  14. local ls = torso:findFirstChild("Left Shoulder")
  15. local rh = torso:findFirstChild("Right Hip")
  16. local lh = torso:findFirstChild("Left Hip")
  17. local neck = torso:findFirstChild("Neck")
  18. local rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  19. local rootpart = char:findFirstChild("HumanoidRootPart")
  20. local camera = workspace.CurrentCamera
  21. local anim = char:findFirstChild("Animate")
  22. DA = false
  23. NoSentry = true
  24. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  25. secondcolor = "Really black"
  26. WSHM = {'10209908','10209905','10209905','10209908'}
  27. WSH = WSHM[math.random(1,#WSHM)]
  28. wait(1 / 60)
  29. Effects = { }
  30. local Player = game.Players.localPlayer
  31. local Character = Player.Character
  32. local Humanoid = Character.Humanoid
  33. local mouse = Player:GetMouse()
  34. local LeftArm = Character["Left Arm"]
  35. local RightArm = Character["Right Arm"]
  36. local LeftLeg = Character["Left Leg"]
  37. local RightLeg = Character["Right Leg"]
  38. local Head = Character.Head
  39. local Torso = Character.Torso
  40. local cam = game.Workspace.CurrentCamera
  41. local RootPart = Character.HumanoidRootPart
  42. local RootJoint = RootPart.RootJoint
  43. local equipped = false
  44. local attack = false
  45. local Anim = 'Idle'
  46. local idle = 0
  47. local attacktype = 1
  48. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  49. local velocity = RootPart.Velocity.y
  50. local sine = 0
  51. local change = 1
  52. local grabbed = false
  53. local cn = CFrame.new
  54. local mr = math.rad
  55. local angles = CFrame.Angles
  56. local ud = UDim2.new
  57. local c3 = Color3.new
  58. local slashDamage = 15
  59. trans = 1
  60. for i,v in pairs(char:GetChildren()) do if v:IsA("Accessory") then v:Remove() end end
  61. for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v:Remove() end end
  62. Wep = 1
  63. equippedgun2 = false
  64.  
  65. p = game.Players.LocalPlayer
  66. char = p.Character
  67. local txt = Instance.new("BillboardGui", char)
  68. txt.Adornee = char .Head
  69. txt.Name = "_status"
  70. txt.Size = UDim2.new(2, 0, 1.2, 0)
  71. txt.StudsOffset = Vector3.new(-9, 8, 0)
  72. local text = Instance.new("TextLabel", txt)
  73. text.Size = UDim2.new(10, 0, 7, 0)
  74. text.FontSize = "Size24"
  75. text.TextScaled = true
  76. text.TextTransparency = 0
  77. text.BackgroundTransparency = 1
  78. text.TextTransparency = 0
  79. text.TextStrokeTransparency = 1
  80. text.Font = "Arcade"
  81. text.TextStrokeColor3 = Color3.new(0,0,255)
  82.  
  83. v=Instance.new("Part")
  84. v.Name = "ColorBrick"
  85. v.Parent=p.Character
  86. v.FormFactor="Symmetric"
  87. v.Anchored=true
  88. v.CanCollide=false
  89. v.BottomSurface="Smooth"
  90. v.TopSurface="Smooth"
  91. v.Size=Vector3.new(10,5,3)
  92. v.Transparency=1
  93. v.CFrame=char.Torso.CFrame
  94. v.BrickColor=BrickColor.new(CV)
  95. v.Transparency=1
  96. text.TextColor3 = Color3.new(255,0,0)
  97. v.Shape="Block"
  98. text.Text = "THE ENGINER BOI"
  99. wait(1 / 60)
  100. Effects = { }
  101. local Player = game.Players.localPlayer
  102. local Character = Player.Character
  103. local Humanoid = Character.Humanoid
  104. local mouse = Player:GetMouse()
  105. local m = Instance.new('Model', Character)
  106. m.Name = "WeaponModel"
  107. local LeftArm = Character["Left Arm"]
  108. local RightArm = Character["Right Arm"]
  109. local LeftLeg = Character["Left Leg"]
  110. local RightLeg = Character["Right Leg"]
  111. local Head = Character.Head
  112. local Torso = Character.Torso
  113. local cam = game.Workspace.CurrentCamera
  114. local RootPart = Character.HumanoidRootPart
  115. local RootJoint = RootPart.RootJoint
  116. local equipped = false
  117. local attack = false
  118. local Anim = 'Idle'
  119. local idle = 0
  120. local attacktype = 1
  121. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  122. local velocity = RootPart.Velocity.y
  123. local sine = 0
  124. local change = 1
  125. local grabbed = false
  126. local cn = CFrame.new
  127. local mr = math.rad
  128. local angles = CFrame.Angles
  129. local ud = UDim2.new
  130. local c3 = Color3.new
  131. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  132. local s = Instance.new("Sound",Character)
  133. s.Name = "BGMusic"
  134. s.SoundId = "rbxassetid://147199480"
  135. s.Pitch = 1
  136. s.Volume = 10
  137. s.Looped = true
  138. s.archivable = false
  139. wait(0.1)
  140. s:play()
  141.  
  142. Humanoid.Animator.Parent = nil
  143. Character.Animate.Parent = nil
  144.  
  145. local newMotor = function(part0, part1, c0, c1)
  146. local w = Instance.new('Motor', part0)
  147. w.Part0 = part0
  148. w.Part1 = part1
  149. w.C0 = c0
  150. w.C1 = c1
  151. return w
  152. end
  153.  
  154. function clerp(a, b, t)
  155. return a:lerp(b, t)
  156. end
  157.  
  158. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  159. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  160.  
  161. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  162. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  163. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  164. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  165. RootJoint.C1 = CFrame.new(0, 0, 0)
  166. RootJoint.C0 = CFrame.new(0, 0, 0)
  167. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  168. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  169.  
  170. local rarmc1 = RW.C1
  171. local larmc1 = LW.C1
  172. local rlegc1 = RH.C1
  173. local llegc1 = LH.C1
  174.  
  175. local resetc1 = false
  176.  
  177. function PlayAnimationFromTable(table, speed, bool)
  178. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  179. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  180. RW.C0 = clerp(RW.C0, table[3], speed)
  181. LW.C0 = clerp(LW.C0, table[4], speed)
  182. RH.C0 = clerp(RH.C0, table[5], speed)
  183. LH.C0 = clerp(LH.C0, table[6], speed)
  184. if bool == true then
  185. if resetc1 == false then
  186. resetc1 = true
  187. RootJoint.C1 = RootJoint.C1
  188. Torso.Neck.C1 = Torso.Neck.C1
  189. RW.C1 = rarmc1
  190. LW.C1 = larmc1
  191. RH.C1 = rlegc1
  192. LH.C1 = llegc1
  193. end
  194. end
  195. end
  196.  
  197. Char = char
  198.  
  199. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  200.  
  201. ArtificialHB = Instance.new("BindableEvent", script)
  202. ArtificialHB.Name = "Heartbeat"
  203.  
  204. script:WaitForChild("Heartbeat")
  205.  
  206. frame = 1 / 30
  207. tf = 0
  208. allowframeloss = false
  209. tossremainder = false
  210. lastframe = tick()
  211. script.Heartbeat:Fire()
  212.  
  213. game:GetService("RunService").Heartbeat:connect(function(s, p)
  214. tf = tf + s
  215. if tf >= frame then
  216. if allowframeloss then
  217. script.Heartbeat:Fire()
  218. lastframe = tick()
  219. else
  220. for i = 1, math.floor(tf / frame) do
  221. script.Heartbeat:Fire()
  222. end
  223. lastframe = tick()
  224. end
  225. if tossremainder then
  226. tf = 0
  227. else
  228. tf = tf - frame * math.floor(tf / frame)
  229. end
  230. end
  231. end)
  232.  
  233. function swait(num)
  234. if num == 0 or num == nil then
  235. ArtificialHB.Event:wait()
  236. else
  237. for i = 0, num do
  238. ArtificialHB.Event:wait()
  239. end
  240. end
  241. end
  242.  
  243. local RbxUtility = LoadLibrary("RbxUtility")
  244. local Create = RbxUtility.Create
  245.  
  246. function RemoveOutlines(part)
  247. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  248. end
  249.  
  250. CFuncs = {
  251. ["Part"] = {
  252. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  253. local Part = Create("Part"){
  254. Parent = Parent,
  255. Reflectance = Reflectance,
  256. Transparency = Transparency,
  257. CanCollide = false,
  258. Locked = true,
  259. BrickColor = BrickColor.new(tostring(BColor)),
  260. Name = Name,
  261. Size = Size,
  262. Material = Material,
  263. }
  264. RemoveOutlines(Part)
  265. return Part
  266. end;
  267. };
  268.  
  269. ["Mesh"] = {
  270. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  271. local Msh = Create(Mesh){
  272. Parent = Part,
  273. Offset = OffSet,
  274. Scale = Scale,
  275. }
  276. if Mesh == "SpecialMesh" then
  277. Msh.MeshType = MeshType
  278. Msh.MeshId = MeshId
  279. end
  280. return Msh
  281. end;
  282. };
  283.  
  284. ["Mesh"] = {
  285. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  286. local Msh = Create(Mesh){
  287. Parent = Part,
  288. Offset = OffSet,
  289. Scale = Scale,
  290. }
  291. if Mesh == "SpecialMesh" then
  292. Msh.MeshType = MeshType
  293. Msh.MeshId = MeshId
  294. end
  295. return Msh
  296. end;
  297. };
  298.  
  299. ["Weld"] = {
  300. Create = function(Parent, Part0, Part1, C0, C1)
  301. local Weld = Create("Weld"){
  302. Parent = Parent,
  303. Part0 = Part0,
  304. Part1 = Part1,
  305. C0 = C0,
  306. C1 = C1,
  307. }
  308. return Weld
  309. end;
  310. };
  311.  
  312. ["Sound"] = {
  313. Create = function(id, par, vol, pit)
  314. coroutine.resume(coroutine.create(function()
  315. local S = Create("Sound"){
  316. Volume = vol,
  317. Pitch = pit or 1,
  318. SoundId = id,
  319. Parent = par or workspace,
  320. }
  321. Instance.new("DistortionSoundEffect", S).Level = 1
  322. wait()
  323. S:play()
  324. game:GetService("Debris"):AddItem(S, 10)
  325. end))
  326. end;
  327. };
  328.  
  329. ["ParticleEmitter"] = {
  330. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  331. local fp = Create("ParticleEmitter"){
  332. Parent = Parent,
  333. Color = ColorSequence.new(Color1, Color2),
  334. LightEmission = LightEmission,
  335. Size = Size,
  336. Texture = Texture,
  337. Transparency = Transparency,
  338. ZOffset = ZOffset,
  339. Acceleration = Accel,
  340. Drag = Drag,
  341. LockedToPart = LockedToPart,
  342. VelocityInheritance = VelocityInheritance,
  343. EmissionDirection = EmissionDirection,
  344. Enabled = Enabled,
  345. Lifetime = LifeTime,
  346. Rate = Rate,
  347. Rotation = Rotation,
  348. RotSpeed = RotSpeed,
  349. Speed = Speed,
  350. VelocitySpread = VelocitySpread,
  351. }
  352. return fp
  353. end;
  354. };
  355. }
  356.  
  357. function rayCast(Position, Direction, Range, Ignore)
  358. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  359. end
  360.  
  361. local function GetNearest(obj, distance)
  362. local last, lastx = distance + 1
  363. for i, v in pairs(workspace:GetChildren()) do
  364. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  365. local t = v.Torso
  366. local dist = (t.Position - obj.Position).magnitude
  367. if dist <= distance then
  368. if dist < last then
  369. last = dist
  370. lastx = v
  371. end
  372. end
  373. end
  374. end
  375. return lastx
  376. end
  377.  
  378. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  379.  
  380. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  381. for i, v in pairs(hit:GetChildren()) do
  382. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  383. local find = v:FindFirstChild("DebounceHit")
  384. if not find then
  385. if v.Parent:findFirstChild("Head") then
  386. local BillG = Create("BillboardGui"){
  387. Parent = v.Parent.Head,
  388. Size = UDim2.new(1, 0, 1, 0),
  389. Adornee = v.Parent.Head,
  390. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  391. }
  392. local TL = Create("TextLabel"){
  393. Parent = BillG,
  394. Size = UDim2.new(3, 3, 3, 3),
  395. BackgroundTransparency = 1,
  396. Text = tostring(damage).."-",
  397. TextColor3 = Color1.Color,
  398. TextStrokeColor3 = Color2.Color,
  399. TextStrokeTransparency = 0,
  400. TextXAlignment = Enum.TextXAlignment.Center,
  401. TextYAlignment = Enum.TextYAlignment.Center,
  402. FontSize = Enum.FontSize.Size18,
  403. Font = "ArialBold",
  404. }
  405. coroutine.resume(coroutine.create(function()
  406. swait(1)
  407. for i = 0, 1, .1 do
  408. swait(.1)
  409. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  410. end
  411. BillG:Destroy()
  412. end))
  413. end
  414. v.Health = v.Health - damage
  415. local bool = Create("BoolValue"){
  416. Parent = v,
  417. Name = "DebounceHit",
  418. }
  419. if HSound ~= nil and HPitch ~= nil then
  420. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  421. end
  422. game:GetService("Debris"):AddItem(bool, cooldown)
  423. end
  424. end
  425. end
  426. end
  427.  
  428. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  429. for _, c in pairs(workspace:children()) do
  430. local hum = c:findFirstChild("Humanoid")
  431. if hum ~= nil then
  432. local head = c:findFirstChild("Torso")
  433. if head ~= nil then
  434. local targ = head.Position - Part.Position
  435. local mag = targ.magnitude
  436. if mag <= magni and c.Name ~= Player.Name then
  437. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  438. end
  439. end
  440. end
  441. end
  442. end
  443.  
  444. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  445. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  446. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  447. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  448. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  449. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  450. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  451. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38, -0.300000194, 0.400000160, 1, 0, 0, 0, 1, 0, 0, 0, -1))
  452. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://470533002", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  453. Part.Mesh.TextureId = "rbxassetid://470533004"
  454. Part.Mesh.Scale = Vector3.new(.03,.03,.03)
  455.  
  456. EffectModel = Instance.new("Model", Character)
  457. EffectModel.Name = "Effects"
  458.  
  459. Effects = {
  460. ["Block"] = {
  461. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  462. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  463. prt.Anchored = true
  464. prt.CFrame = cframe
  465. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  466. game:GetService("Debris"):AddItem(prt, 10)
  467. if Type == 1 or Type == nil then
  468. table.insert(Effects, {
  469. prt,
  470. "Block1",
  471. delay,
  472. x3,
  473. y3,
  474. z3,
  475. msh
  476. })
  477. elseif Type == 2 then
  478. table.insert(Effects, {
  479. prt,
  480. "Block2",
  481. delay,
  482. x3,
  483. y3,
  484. z3,
  485. msh
  486. })
  487. end
  488. end;
  489. };
  490.  
  491. ["Cylinder"] = {
  492. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  493. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  494. prt.Anchored = true
  495. prt.CFrame = cframe
  496. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  497. game:GetService("Debris"):AddItem(prt, 2)
  498. Effects[#Effects + 1] = {
  499. prt,
  500. "Cylinder",
  501. delay,
  502. x3,
  503. y3,
  504. z3
  505. }
  506. end;
  507. };
  508.  
  509. ["Sphere"] = {
  510. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  511. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  512. prt.Anchored = true
  513. prt.CFrame = cframe
  514. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  515. game:GetService("Debris"):AddItem(prt, 10)
  516. table.insert(Effects, {
  517. prt,
  518. "Cylinder",
  519. delay,
  520. x3,
  521. y3,
  522. z3,
  523. msh
  524. })
  525. end;
  526. };
  527.  
  528. ["Elec"] = {
  529. Create = function(cff, x, y, z)
  530. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  531. prt.Anchored = true
  532. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  533. prt.CFrame = CFrame.new(prt.Position)
  534. game:GetService("Debris"):AddItem(prt, 2)
  535. local xval = math.random() / 2
  536. local yval = math.random() / 2
  537. local zval = math.random() / 2
  538. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  539. table.insert(Effects, {
  540. prt,
  541. "Elec",
  542. 0.1,
  543. x,
  544. y,
  545. z,
  546. xval,
  547. yval,
  548. zval
  549. })
  550. end;
  551.  
  552. };
  553.  
  554. ["Ring"] = {
  555. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  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, {
  562. prt,
  563. "Cylinder",
  564. delay,
  565. x3,
  566. y3,
  567. z3,
  568. msh
  569. })
  570. end;
  571. };
  572.  
  573.  
  574. ["Wave"] = {
  575. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  576. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  577. prt.Anchored = true
  578. prt.CFrame = cframe
  579. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  580. game:GetService("Debris"):AddItem(prt, 10)
  581. table.insert(Effects, {
  582. prt,
  583. "Cylinder",
  584. delay,
  585. x3,
  586. y3,
  587. z3,
  588. msh
  589. })
  590. end;
  591. };
  592.  
  593. ["Break"] = {
  594. Create = function(brickcolor, cframe, x1, y1, z1)
  595. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  596. prt.Anchored = true
  597. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  598. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  599. local num = math.random(10, 50) / 1000
  600. game:GetService("Debris"):AddItem(prt, 10)
  601. table.insert(Effects, {
  602. prt,
  603. "Shatter",
  604. num,
  605. prt.CFrame,
  606. math.random() - math.random(),
  607. 0,
  608. math.random(50, 100) / 100
  609. })
  610. end;
  611. };
  612. }
  613.  
  614. Shoot2 = function(orgpos)
  615. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  616. Effects["Sphere"].Create(BrickColor.new("White"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  617. table.insert(Effects, {
  618. MouseLook.lookVector,
  619. "Shoot2",
  620. 50,
  621. orgpos,
  622. 5,
  623. 7,
  624. 0,
  625. 1,
  626. 2
  627. })
  628. end
  629.  
  630. local AddInstance = function(Object, ...)
  631. local Obj = Instance.new(Object)
  632. for i,v in next,(...) do
  633. Obj[i] = v
  634. end
  635. return Obj
  636. end
  637.  
  638.  
  639. Team=function()
  640.  
  641. local r=math.random(1,2)
  642. if r==1 then
  643. print('RED')
  644. script.Name = "TeamRed"
  645. TmRed = true
  646. for i,v in pairs(char:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  647. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  648. wait()shirt = Instance.new("Shirt", char)
  649. shirt.Name = "Shirt"
  650. pants = Instance.new("Pants", char)
  651. pants.Name = "Pants"
  652. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=69232230"
  653. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=69232580"
  654. TeamColor = BrickColor.new("Bright red")
  655. end
  656.  
  657. if r==2 then
  658. print('BLUE')
  659. TmBlue = true
  660. script.Name = "TeamBlue"
  661. for i,v in pairs(char:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  662. for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  663. wait()shirt = Instance.new("Shirt", char)
  664. shirt.Name = "Shirt"
  665. pants = Instance.new("Pants", char)
  666. pants.Name = "Pants"
  667. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=69232247"
  668. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=69232594"
  669. TeamColor = BrickColor.new("Bright blue")
  670. end
  671. print(''..r)
  672. end
  673.  
  674. Team()
  675.  
  676. head.face.Texture = "http://www.roblox.com/asset/?id=393521316"
  677.  
  678. local MusThingHat = AddInstance("Part",{
  679. Parent = head,
  680. CFrame = head.CFrame,
  681. formFactor = "Symmetric",
  682. Size = Vector3.new(1, 1, 1),
  683. CanCollide = false,
  684. TopSurface = "Smooth",
  685. BottomSurface = "Smooth",
  686. Locked = true,
  687. BrickColor=BrickColor.new("Br. yellowish orange"),
  688. Transparency = 1,
  689. })
  690. local Weld = AddInstance("Weld",{
  691. Parent = MusThingHat,
  692. Part0 = head,
  693. C0 = CFrame.new(0,0.5,0)*CFrame.Angles(0,0,0),
  694. Part1 = MusThingHat,
  695. })
  696. local Mesh = AddInstance("SpecialMesh",{
  697. Parent = MusThingHat,
  698.  
  699. Scale = Vector3.new(.1,0,.1),
  700.  
  701. })
  702.  
  703. local Reaper = AddInstance("Part",{
  704. Parent = head,
  705. CFrame = head.CFrame,
  706. formFactor = "Symmetric",
  707. Size = Vector3.new(1, 1, 1),
  708. CanCollide = false,
  709. TopSurface = "Smooth",
  710. BottomSurface = "Smooth",
  711. Locked = true,
  712. BrickColor=BrickColor.new("Br. yellowish orange"),
  713. })
  714. local Weld = AddInstance("Weld",{
  715. Parent = Reaper,
  716. Part0 = head,
  717. C0 = CFrame.new(-.04,.7,-.1)*CFrame.Angles(0,0,.08),
  718. Part1 = Reaper,
  719. })
  720. local Mesh = AddInstance("SpecialMesh",{
  721. Parent = Reaper,
  722. MeshId = "rbxassetid://1073659",
  723. Scale = Vector3.new(1.06,1.05,1.06),
  724. VertexColor = Vector3.new(1,1,1),
  725. })
  726.  
  727. local Helmpart2 = AddInstance("Part",{
  728. Parent = head,
  729. CFrame = head.CFrame,
  730. formFactor = "Symmetric",
  731. Size = Vector3.new(1, 1, 1),
  732. CanCollide = false,
  733. TopSurface = "Smooth",
  734. BottomSurface = "Smooth",
  735. Locked = true,
  736. BrickColor=BrickColor.new("White"),
  737. })
  738. local Weld = AddInstance("Weld",{
  739. Parent = Helmpart2,
  740. Part0 = head,
  741. C0 = CFrame.new(.01,.4,.05)*CFrame.Angles(.1,0,-.02),
  742. Part1 = Helmpart2,
  743. })
  744. local Mesh = AddInstance("SpecialMesh",{
  745. Parent = Helmpart2,
  746. Scale = Vector3.new(1.28,.48,1.28),
  747. VertexColor = Vector3.new(1,1,1),
  748. })
  749.  
  750.  
  751. local Glassespart2 = AddInstance("Part",{
  752. Parent = head,
  753. CFrame = head.CFrame,
  754. formFactor = "Symmetric",
  755. Size = Vector3.new(1, 1, 1),
  756. CanCollide = false,
  757. TopSurface = "Smooth",
  758. BottomSurface = "Smooth",
  759. Locked = true,
  760. BrickColor=BrickColor.new("Really black"),
  761. })
  762. local Weld = AddInstance("Weld",{
  763. Parent = Glassespart2,
  764. Part0 = head,
  765. C0 = CFrame.new(0,.35,0)*CFrame.Angles(0,0,0),
  766. Part1 = Glassespart2,
  767. })
  768. local Mesh = AddInstance("SpecialMesh",{
  769. Parent = Glassespart2,
  770. Scale = Vector3.new(1.27,.5,1.27),
  771. VertexColor = Vector3.new(1,1,1),
  772. })
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781. local Reaper3 = AddInstance("Part",{
  782. Parent = head,
  783. CFrame = head.CFrame,
  784. formFactor = "Symmetric",
  785. Size = Vector3.new(1, 1, 1),
  786. CanCollide = false,
  787. TopSurface = "Smooth",
  788. BottomSurface = "Smooth",
  789. Locked = true,
  790. BrickColor=BrickColor.new("Gold"),
  791. })
  792. local Weld = AddInstance("Weld",{
  793. Parent = Reaper3,
  794. Part0 = head,
  795. C0 = CFrame.new(0,.3,-0.02)*CFrame.Angles(-.1,0,0),
  796. Part1 = Reaper3,
  797. })
  798. local Mesh = AddInstance("SpecialMesh",{
  799. Parent = Reaper3,
  800. MeshId = "rbxassetid://19380122",
  801. TextureId = "rbxassetid://19380117",
  802. Scale = Vector3.new(.9,1,1),
  803. VertexColor = Vector3.new(1,1,1),
  804. })
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811. function bulletstorm()
  812. attack = true
  813. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  814. text.Text = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  815. wait(1.5)
  816. for i = 0, 1, 0.025 do
  817. swait()
  818. PlayAnimationFromTable({
  819. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  820. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  821. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  822. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  823. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  824. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  825. }, .3, false)
  826. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  827. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  828. Shoot2(Barrel.Position)
  829. text.Text = "ENGINER WITH the shutgun"
  830. end
  831.  
  832. attack = false
  833. end
  834.  
  835. function overload()
  836. attack = true
  837. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  838. text.Text = "AAAAAAAAAAAA"
  839. Shoot2(LeftArm.Position)
  840. Shoot2(RightArm.Position)
  841. Shoot2(RightLeg.Position)
  842. Shoot2(LeftLeg.Position)
  843. Shoot2(Head.Position)
  844. Shoot2(Torso.Position)
  845. wait(0)
  846. attack = false
  847. text.Text = "guy with an inverted sniper rifle"
  848. end
  849.  
  850. function overcharge()
  851. attack = true
  852. text.Text = "AAAAAAAAAAAA"
  853. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  854. for i = 0, 1, 0.15 do
  855. swait()
  856. PlayAnimationFromTable({
  857. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  858. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  859. CFrame.new(1.10100186, 0.535800219, -0.637803555, 0.658456147, 0.673041463, 0.336824596, 0.280167073, 0.196174845, -0.939692438, -0.698528469, 0.713113427, -0.0593915135),
  860. CFrame.new(-1.62758517, 0.073027119, -0.378663093, 0.90510416, 0.321394593, -0.278374165, -0.392632991, 0.883023262, -0.25711751, 0.163174719, 0.342016995, 0.92541796),
  861. CFrame.new(0.644929826, -1.96549833, 0.164695352, 0.962249994, -0.148305506, 0.228211343, 0.0871559754, 0.962249756, 0.257835865, -0.257834762, -0.22821258, 0.938850582),
  862. CFrame.new(-0.750219464, -1.99537396, -0.240616962, 0.862504363, 0.0818999186, 0.499378443, -0.08583197, 0.99619472, -0.0151344473, -0.498717606, -0.0298091136, 0.866251826),
  863. }, .5, false)
  864. end
  865. wait(3)
  866. Shoot2(Barrel.Position)
  867. Shoot2(Barrel.Position)
  868. Shoot2(Handle.Position)
  869. Shoot2(Handle.Position)
  870. Shoot2(FakeHandle.Position)
  871. Shoot2(FakeHandle.Position)
  872. Shoot2(Barrel.Position)
  873. Shoot2(Barrel.Position)
  874. Shoot2(Handle.Position)
  875. Shoot2(Handle.Position)
  876. Shoot2(FakeHandle.Position)
  877. Shoot2(FakeHandle.Position)
  878. Shoot2(Barrel.Position)
  879. Shoot2(Barrel.Position)
  880. Shoot2(Handle.Position)
  881. Shoot2(Handle.Position)
  882. Shoot2(FakeHandle.Position)
  883. Shoot2(FakeHandle.Position)
  884. Shoot2(Barrel.Position)
  885. Shoot2(Barrel.Position)
  886. Shoot2(Handle.Position)
  887. Shoot2(Handle.Position)
  888. Shoot2(FakeHandle.Position)
  889. Shoot2(FakeHandle.Position)
  890. for i = 0, 1, 0.15 do
  891. swait()
  892. PlayAnimationFromTable({
  893. CFrame.new(2.70828605e-006, -0.256154776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  894. CFrame.new(4.34633694e-006, 1.49999607, 2.42484384e-006, 0.646143615, 0.0549410731, 0.761235893, -0.0851004422, 0.996372402, 0.000322267413, -0.758456767, -0.0649897307, 0.648474991),
  895. CFrame.new(1.86507177, 0.598104239, 0.183552518, -0.114682339, -0.981059372, -0.156110525, 0.981060445, -0.0871559381, -0.172987223, 0.156104773, -0.172992408, 0.9724738),
  896. CFrame.new(-1.52644157, 0.0874626189, -0.302744657, 0.95125103, 0.20658794, -0.229004204, -0.254887104, 0.944645047, -0.2065873, 0.173649222, 0.254886597, 0.951251268),
  897. CFrame.new(0.623469114, -1.90178788, 0.0298061967, 0.992532074, -0.0928985924, 0.079056859, 0.0757590532, 0.97739321, 0.197391063, -0.0956070125, -0.189927697, 0.977131963),
  898. CFrame.new(-0.786503196, -1.67652178, -0.389780819, 0.631277382, 0.179900557, 0.754403591, -0.0723632798, 0.982144117, -0.173656344, -0.772174001, 0.0550341941, 0.6330235),
  899. }, .35, false)
  900. text.Text = "Enginer with da sentry boi"
  901. end
  902. attack = false
  903. end
  904.  
  905. function attackone()
  906. attack = true
  907. text.Text = "GOTTA MOVE GEAR UP"
  908.  
  909. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  910. howtobasic1.Volume = 45
  911. howtobasic1.SoundId = "rbxassetid://144404977"
  912. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  913. howtobasic2.Volume = 45
  914. howtobasic2.SoundId = "rbxassetid://144404977"
  915. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  916. howtobasic3.Volume = 45
  917. howtobasic3.SoundId = "rbxassetid://144404977"
  918. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  919. howtobasic.Volume = 45
  920. howtobasic.SoundId = "rbxassetid://144404977"
  921.  
  922. local Math = math.random(1,4)
  923. if Math == 1 then
  924. howtobasic:Play()
  925. end
  926. if Math == 2 then
  927. howtobasic1:Play()
  928. end
  929. if Math == 3 then
  930. howtobasic2:Play()
  931. end
  932. if Math == 4 then
  933. howtobasic3:Play()
  934. end
  935. for i = 0, 1, 0.025 do
  936. swait()
  937. PlayAnimationFromTable({
  938. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  939. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  940. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  941. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  942. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  943. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  944. }, .3, false)
  945. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  946. end
  947. CFuncs["Sound"].Create("rbxassetid://2107584142", Barrel, 20, 1)
  948. text.Text = "The idiot engineeeer"
  949. Shoot2(Barrel.Position)
  950. for i = 0, 1, 0.15 do
  951. swait()
  952. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  953. PlayAnimationFromTable({
  954. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  955. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  956. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  957. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  958. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  959. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  960. }, .6, false)
  961. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  962. end
  963. for i = 0, 1, 0.15 do
  964. swait()
  965. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  966. PlayAnimationFromTable({
  967. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  968. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  969. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  970. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  971. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  972. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  973. }, .2, false)
  974. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  975. end
  976. for i = 0, 1, 0.05 do
  977. swait()
  978. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  979. PlayAnimationFromTable({
  980. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  981. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  982. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  983. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  984. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  985. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  986. }, .3, false)
  987. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  988. end
  989. for i = 0, 1, 0.13 do
  990. swait()
  991. PlayAnimationFromTable({
  992. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  993. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  994. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  995. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  996. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  997. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  998. }, .3, false)
  999. end
  1000. attack = false
  1001. end
  1002.  
  1003. --[[Attacks]]--
  1004.  
  1005. mouse.Button1Down:connect(function()
  1006. if attack == false and attacktype == 1 then
  1007. attackone()
  1008. end
  1009. end)
  1010.  
  1011.  
  1012. mouse.KeyDown:connect(function(k)
  1013. k = k:lower()
  1014. if attack == false and k == 'q' then
  1015. bulletstorm()
  1016. elseif attack == false and k == 'e' then
  1017. overload()
  1018. elseif attack == false and k == 'r' then
  1019. overcharge()
  1020. end
  1021. end)
  1022.  
  1023. while true do
  1024. swait()
  1025. for i, v in pairs(Character:GetChildren()) do
  1026. if v:IsA("Part") then
  1027. v.Material = "SmoothPlastic"
  1028. elseif v:IsA("Accessory") then
  1029. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1030. end
  1031. end
  1032. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1033. velocity = RootPart.Velocity.y
  1034. sine = sine + change
  1035. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1036. if equipped == true or equipped == false then
  1037. if RootPart.Velocity.y > 1 and hit == nil then
  1038. Anim = "Jump"
  1039. if attack == false then
  1040. PlayAnimationFromTable({
  1041. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1042. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1043. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1044. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1045. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1046. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1047. }, .3, false)
  1048. end
  1049. elseif RootPart.Velocity.y < -60 and hit == nil then
  1050. Anim = "Fall"
  1051. if attack == false then
  1052. PlayAnimationFromTable({
  1053. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1054. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1055. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1056. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1057. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1058. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1059. }, .3, false)
  1060. end
  1061. elseif Torsovelocity < 1 and hit ~= nil then
  1062. Anim = "Idle"
  1063. if attack == false then
  1064. change = 1
  1065. PlayAnimationFromTable({
  1066. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1067. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1068. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1069. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1070. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1071. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1072. }, .3, false)
  1073. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  1074. end
  1075. elseif Torsovelocity > 2 and hit ~= nil then
  1076. Anim = "Walk"
  1077. if attack == false then
  1078. change = 3
  1079. PlayAnimationFromTable({
  1080. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1081. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1082. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1083. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1084. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  1085. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  1086. }, .3, false)
  1087. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  1088. end
  1089. end
  1090. end
  1091. if 0 < #Effects then
  1092. for e = 1, #Effects do
  1093. if Effects[e] ~= nil then
  1094. local Thing = Effects[e]
  1095. if Thing ~= nil then
  1096. local Part = Thing[1]
  1097. local Mode = Thing[2]
  1098. local Delay = Thing[3]
  1099. local IncX = Thing[4]
  1100. local IncY = Thing[5]
  1101. local IncZ = Thing[6]
  1102. if Thing[2] == "Shoot" then
  1103. local Look = Thing[1]
  1104. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  1105. local mag = (Thing[4] - pos).magnitude
  1106. Thing[9] = Thing[9] + 0.5
  1107. Thing[5] = Thing[5] + 0.2
  1108. Thing[6] = Thing[6] + 0.2
  1109. Effects["Cylinder"].Create(BrickColor.new("White"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  1110. Thing[4] = Thing[4] + Look * 15
  1111. Thing[3] = Thing[3] - 1
  1112. if hit ~= nil then
  1113. Thing[3] = 0
  1114. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  1115. ref.Anchored = true
  1116. ref.CFrame = CFrame.new(pos)
  1117. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1118. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  1119. game:GetService("Debris"):AddItem(ref, 10)
  1120. end
  1121. if Thing[3] <= 0 then
  1122. table.remove(Effects, e)
  1123. end
  1124. end
  1125. do
  1126. if Thing[2] == "Shoot2" then
  1127. local Look = Thing[1]
  1128. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  1129. local mag = (Thing[4] - pos).magnitude
  1130. Thing[9] = Thing[9] + 0.5
  1131. Thing[5] = Thing[5] + 0.2
  1132. Thing[6] = Thing[6] + 0.2
  1133. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  1134. Thing[4] = Thing[4] + Look * 3
  1135. Thing[3] = Thing[3] + 5
  1136. if hit ~= nil then
  1137. Thing[3] = 0
  1138. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  1139. ref.Anchored = true
  1140. ref.CFrame = CFrame.new(pos)
  1141. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  1142. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  1143. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  1144. Effects["Wave"].Create(BrickColor.new("Smoky grey"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  1145. CFuncs["Sound"].Create("rbxassetid://10209236", ref, 1, 1)
  1146. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.5, 1)
  1147. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.1, 1)
  1148. local e = Instance.new("Explosion", ref)
  1149. e.Position = ref.Position
  1150. e.BlastRadius = 400
  1151. e.DestroyJointRadiusPercent = 400
  1152. e.Visible = false
  1153. e.ExplosionType = "CratersAndDebris"
  1154. game:GetService("Debris"):AddItem(ref, 2)
  1155. end
  1156. if Thing[3] <= 0 then
  1157. table.remove(Effects, e)
  1158. end
  1159. end
  1160. do
  1161. do
  1162. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  1163. if Thing[1].Transparency <= 1 then
  1164. if Thing[2] == "Block1" then
  1165. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1166. Mesh = Thing[7]
  1167. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1168. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1169. else
  1170. if Thing[2] == "Block2" then
  1171. Thing[1].CFrame = Thing[1].CFrame
  1172. Mesh = Thing[7]
  1173. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1174. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1175. else
  1176. if Thing[2] == "Block3" then
  1177. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  1178. Mesh = Thing[7]
  1179. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1180. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1181. else
  1182. if Thing[2] == "Cylinder" then
  1183. Mesh = Thing[7]
  1184. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1185. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1186. else
  1187. if Thing[2] == "Cylinder2" then
  1188. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  1189. Mesh = Thing[7]
  1190. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1191. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1192. else
  1193. if Thing[2] == "Blood" then
  1194. Mesh = Thing[7]
  1195. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1196. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1197. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1198. else
  1199. if Thing[2] == "Elec" then
  1200. Mesh = Thing[10]
  1201. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1202. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1203. else
  1204. if Thing[2] == "Disappear" then
  1205. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1206. end
  1207. end
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. else
  1215. Part.Parent = nil
  1216. table.remove(Effects, e)
  1217. end
  1218. end
  1219. end
  1220. end
  1221. end
  1222. end
  1223. end
  1224. end
  1225. end
  1226. end
Add Comment
Please, Sign In to add comment