Idirina

OPOS HACK

Oct 25th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.36 KB | None | 0 0
  1. --//BY DOMINIC, DO NOT LEAK//--cccc
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. function Part(Par, Anc, Colli, Tran, Ref, Col, Siz)
  12. local p = Instance.new("Part")
  13. p.formFactor = "Custom"
  14. p.TopSurface = 0
  15. p.BottomSurface = 0
  16. p.Transparency = Tran
  17. p.Reflectance = Ref
  18. p.Anchored = Anc
  19. p.CanCollide = Colli
  20. p.BrickColor = Col
  21. p.Size = Siz
  22. p.Locked = true
  23. p.Parent = Par
  24. p:BreakJoints()
  25. return p
  26. end
  27. function Weld(P0, P1, C0, C1)
  28. local w = Instance.new("Weld")
  29. w.Part0 = P0
  30. w.Part1 = P1
  31. if C0 then
  32. w.C0 = C0
  33. end
  34. if C1 then
  35. w.C1 = C1
  36. end
  37. w.Parent = P0
  38. return w
  39. end
  40. V3 = Vector3.new
  41. C3 = Color3.new
  42. BN = BrickColor.new
  43. CN = CFrame.new
  44. CA = CFrame.Angles
  45. MR = math.rad
  46. MRA = math.random
  47. MP = math.pi
  48. MH = math.huge
  49. UD = UDim2.new
  50. Asset = "http://www.roblox.com/asset/?id="
  51. Noob = nil
  52. function MakeMotor(torso, p1, c0, c1)
  53. local mot = Instance.new("Motor6D")
  54. mot.C0 = c0
  55. mot.C1 = c1
  56. mot.Part0 = torso
  57. mot.Part1 = p1
  58. mot.Parent = torso
  59. return mot
  60. end
  61. function Set(tab)
  62. for _,v in pairs(tab) do
  63. local motor = v[1]
  64. local vel = v[2]
  65. local des = v[3]
  66. motor.MaxVelocity = vel
  67. motor.DesiredAngle = des
  68. end
  69. end
  70. function Animate(Hum, RSH, LSH, RH, LH)
  71. local pose = "Standing"
  72. local function sit()
  73. pose = "Seated"
  74. end
  75. local function jump()
  76. pose = "Jumping"
  77. end
  78. local function died()
  79. pose = "Dead"
  80. end
  81. local function falling()
  82. pose = "Falling"
  83. end
  84. local function climbing()
  85. pose = "Climbing"
  86. end
  87. local function run(speed)
  88. if speed > 0.5 then
  89. pose = "Running"
  90. else
  91. pose = "Standing"
  92. end
  93. end
  94. local function move()
  95. if pose == "Seated" then
  96. Set({{RSH, 0.15, math.pi/2}, {LSH, 0.15, -math.pi/2}, {LH, 0.15, math.pi/2}, {RH, 0.15, -math.pi/2}})
  97. return
  98. end
  99. if pose == "Jumping" then
  100. Set({{RSH, 0.3, math.pi}, {LSH, 0.3, -math.pi}, {LH, 0.3, 0}, {RH, 0.3, 0}})
  101. return
  102. end
  103. if pose == "Standing" then
  104. Set({{RSH, 0.25, 0}, {LSH, 0.25, 0}, {LH, 0.25, 0}, {RH, 0.25, 0}})
  105. return
  106. end
  107. if pose == "Falling" then
  108. Set({{RSH, 0.35, math.pi}, {LSH, 0.35, -math.pi}, {LH, 0.35, 0}, {RH, 0.35, 0}})
  109. return
  110. end
  111. if pose == "Running" then
  112. Set({{RSH, 0.2, -0.8}, {LSH, 0.2, 0.8}, {LH, 0.2, 0}, {RH, 0.2, 0}})
  113. elseif pose == "Climbing" then
  114. Set({{RSH, 0.35, 2.8}, {LSH, 0.35, -2.8}, {LH, 0.35, 0.1}, {RH, 0.35, 0.1}})
  115. end
  116. end
  117. Hum.Jumping:connect(jump)
  118. Hum.Running:connect(run)
  119. Hum.Seated:connect(sit)
  120. Hum.Died:connect(died)
  121. Hum.FreeFalling:connect(falling)
  122. Hum.Climbing:connect(climbing)
  123. coroutine.resume(coroutine.create(function()
  124. while pose ~= "Dead" do
  125. wait(0.04)
  126. move()
  127. end
  128. end))
  129. end
  130. function MakeNoob(pos, scale)
  131. local Nub = Instance.new("Model")
  132. Nub.Name = "Cannoneer nub"
  133. local Torso = Part(Nub, false, false, 0, 0, BN("Bright blue"), V3(2*scale, 2*scale, 1*scale))
  134. Torso.Name = "Torso"
  135. local Head = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(2*scale, 1*scale, 1*scale))
  136. Head.Name = "Head"
  137. local Neck = MakeMotor(Torso, Head, CN(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CN(0, -0.5*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  138. local HeadMesh = Instance.new("SpecialMesh",Head)
  139. HeadMesh.Scale = V3(1.25, 1.25, 1.25)
  140. local Face = Instance.new("Decal",Head)
  141. Face.Face = "Front"
  142. Face.Texture = Asset..(13038247)
  143. local Rarm = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(1*scale, 2*scale, 1*scale))
  144. Rarm.Name = "Right Arm"
  145. local Larm = Part(Nub, false, false, 0, 0, BN("Bright yellow"), V3(1*scale, 2*scale, 1*scale))
  146. Larm.Name = "Left Arm"
  147. local Rleg = Part(Nub, false, true, 0, 0, BN("Br. yellowish green"), V3(1*scale, 2*scale, 1*scale))
  148. Rleg.Name = "Right Leg"
  149. local Lleg = Part(Nub, false, true, 0, 0, BN("Br. yellowish green"), V3(1*scale, 2*scale, 1*scale))
  150. Lleg.Name = "Left Leg"
  151. local RSH = MakeMotor(Torso, Rarm, CN(1*scale, 0.5*scale, 0) * CA(0, MR(90), 0), CN(-0.5*scale, 0.5*scale, 0) * CA(0, MR(90), 0))
  152. local LSH = MakeMotor(Torso, Larm, CN(-1*scale, 0.5*scale, 0) * CA(0, MR(-90), 0), CN(0.5*scale, 0.5*scale, 0) * CA(0, MR(-90), 0))
  153. local RH = MakeMotor(Torso, Rleg, CN(0.5*scale, -1*scale, 0) * CA(0, MR(-90), 0), CN(0, 1*scale, 0) * CA(0, MR(-90), 0))
  154. local LH = MakeMotor(Torso, Lleg, CN(-0.5*scale, -1*scale, 0) * CA(0, MR(90), 0), CN(0, 1*scale, 0) * CA(0, MR(90), 0))
  155. local Hum = Instance.new("Humanoid")
  156. local Speed = 14+(2*scale)
  157. Hum.Parent = Nub
  158. Hum.Died:connect(function()
  159. wait(6)
  160. Nub:remove()
  161. wait(5)
  162. MakeNoob(pos, scale)
  163. end)
  164. Nub.Parent = workspace
  165. Nub:MakeJoints()
  166. Hum.MaxHealth = 50+(scale*70)
  167. Hum.Health = 50+(scale*70)
  168. Nub:MoveTo(pos)
  169. coroutine.resume(coroutine.create(function()
  170. repeat wait()
  171. Hum.Health = Hum.MaxHealth
  172. until Hum.Health >= Hum.MaxHealth-1
  173. end))
  174. Animate(Hum,RSH,LSH,RH,LH)
  175. local Char = Nub
  176. local necko = CN(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  177. local ShootColors = {"Bright yellow", "New Yeller", "Bright orange", "Neon orange", "Really red", "Bright red"}
  178. local Attacking = false
  179. local Accuracy = 5
  180. local Debounce = true
  181. local Hurt = false
  182. local Damage = {15,42}
  183. local Selected = false
  184. local ContentProvider = game:GetService("ContentProvider")
  185. local function RC(Pos, Dir, Max, Ignore)
  186. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  187. end
  188. local function RayC(Start, En, MaxDist, Ignore)
  189. return RC(Start, (En - Start), MaxDist, Ignore)
  190. end
  191. local function ComputePos(pos1, pos2)
  192. return CN(pos1, V3(pos2.x, pos1.y, pos2.z))
  193. end
  194. local function DetectSurface(pos, part)
  195. local surface = nil
  196. local pospos = part.CFrame
  197. local pos2 = pospos:pointToObjectSpace(pos)
  198. local siz = part.Size
  199. local shaep = part.Shape
  200. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  201. surface = {"Anything", CN(pospos.p, pos)*CN(0, 0, -(pospos.p - pos).magnitude)*CA(MR(-90), 0, 0)}
  202. else
  203. if pos2.Y > ((siz.Y/2)-0.04) then
  204. surface = {"Top", CA(0, 0, 0)}
  205. elseif pos2.Y < -((siz.Y/2)-0.04) then
  206. surface = {"Bottom", CA(-MP, 0, 0)}
  207. elseif pos2.X > ((siz.X/2)-0.04) then
  208. surface = {"Right", CA(0, 0, MR(-90))}
  209. elseif pos2.X < -((siz.X/2)-0.04) then
  210. surface = {"Left", CA(0, 0, MR(90))}
  211. elseif pos2.Z > ((siz.Z/2)-0.04) then
  212. surface = {"Back", CA(MR(90), 0, 0)}
  213. elseif pos2.Z < -((siz.Z/2)-0.04) then
  214. surface = {"Front", CA(MR(-90), 0, 0)}
  215. end
  216. end
  217. return surface
  218. end
  219. local function waitChild(n, p)
  220. local c = p:findFirstChild(n)
  221. if c then return c end
  222. while true do
  223. c = p.ChildAdded:wait()
  224. if c.Name == n then return c end
  225. end
  226. end
  227. local function Notime(func)
  228. coroutine.resume(coroutine.create(function()
  229. func()
  230. end))
  231. end
  232. RSH.Part0 = Torso
  233. LSH.Part0 = Torso
  234. RH.Part0 = Torso
  235. LH.Part0 = Torso
  236. local Add = {
  237. Mesh = function(P, ID, Scale, Tex)
  238. local m = Instance.new("SpecialMesh")
  239. m.MeshType = "FileMesh"
  240. m.MeshId = ID or ""
  241. m.Scale = Scale or V3(1, 1, 1)
  242. m.TextureId = Tex or ""
  243. m.Parent = P
  244. return m
  245. end,
  246. Sphere = function(P, Scale)
  247. local m = Instance.new("SpecialMesh")
  248. m.MeshType = "Sphere"
  249. m.Scale = Scale or V3(1, 1, 1)
  250. m.Parent = P
  251. return m
  252. end
  253. }
  254. local Sounds = {
  255. Shoot = {Id = "http://www.roblox.com/asset/?id=2697431", Pitch = 0.3, Volume = 0.5},
  256. Boom = {Id = "http://www.roblox.com/asset/?id=2692806", Pitch = 0.55, Volume = 0.4},
  257. Slash = {Id = "rbxasset://sounds//swordslash.wav", Pitch = 0.5, Volume = 0.5},
  258. Hit = {Id = "http://www.roblox.com/asset/?id=2801263", Pitch = 0.85, Volume = 0.35},
  259. Reload = {Id = "rbxasset://sounds\\metal.ogg", Pitch = 1, Volume = 0.45},
  260. }
  261. for _,v in pairs(Sounds) do
  262. ContentProvider:Preload(v.Id)
  263. end
  264. local function PlaySound(Sound, bool)
  265. local s = Instance.new("Sound")
  266. s.Looped = false
  267. s.Volume = Sound.Volume
  268. s.SoundId = Sound.Id
  269. if bool then
  270. s.Pitch = MRA((Sound.Pitch*0.75)*1000, (Sound.Pitch*1.15)*1000)/1000
  271. else
  272. s.Pitch = Sound.Pitch
  273. end
  274. s.Parent = Torso
  275. s:play()
  276. Notime(function()
  277. wait(0.5)
  278. s:remove()
  279. end)
  280. end
  281. local function GetParts(pos, dist)
  282. local parts = {}
  283. local function o(p)
  284. for _,v in pairs(p:children()) do
  285. if v:IsA("BasePart") then
  286. if (pos - v.Position).magnitude <= dist then
  287. table.insert(parts, {v, (pos - v.Position).magnitude, v.Anchored})
  288. end
  289. end
  290. o(v)
  291. end
  292. end
  293. o(workspace)
  294. return parts
  295. end
  296. local function GetHum(P)
  297. for _,v in pairs(P:children()) do
  298. if v:IsA("Humanoid") then
  299. if v.Health > 0 then
  300. return v
  301. end
  302. end
  303. end
  304. end
  305. local function GetGroup(Pos, Distance, Hit)
  306. local tab = {}
  307. for _,v in pairs(workspace:children()) do
  308. local h = GetHum(v)
  309. local t = v:findFirstChild("Torso")
  310. if h and t and v ~= Hit.Parent then
  311. if (t.Position - Pos).magnitude <= Distance then
  312. table.insert(tab, {h, v, (t.Position - Pos).magnitude})
  313. end
  314. end
  315. end
  316. if Hit then
  317. local h = GetHum(Hit.Parent)
  318. if h then
  319. table.insert(tab, {h, Hit.Parent, 0})
  320. end
  321. end
  322. return tab
  323. end
  324. local Model = Instance.new("Model")
  325. Model.Name = "Hand Cannon"
  326. local FTorso = Part(Model, false, false, 1, 0, Torso.BrickColor, V3(2*scale, 2*scale, 1*scale))
  327. local FW = Weld(Torso, FTorso)
  328. local RAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  329. local LAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  330. local RLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  331. local LLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  332. local RABW = Weld(Torso, RAB, CN(), CN(-1.5*scale, -0.5*scale, 0))
  333. local LABW = Weld(Torso, LAB, CN(), CN(1.5*scale, -0.5*scale, 0))
  334. local RLBW = Weld(Torso, RLB, CN(), CN(-0.5*scale, 1*scale, 0))
  335. local LLBW = Weld(Torso, LLB, CN(), CN(0.5*scale, 1*scale, 0))
  336. local RAW = Weld(RAB, nil, CN(), CN(0, 0.5*scale, 0))
  337. local LAW = Weld(LAB, nil, CN(), CN(0, 0.5*scale, 0))
  338. local RLW = Weld(RLB, nil, CN(), CN(0, 1*scale, 0))
  339. local LLW = Weld(LLB, nil, CN(), CN(0, 1*scale, 0))
  340. local TW = Weld(Torso, nil, CN(0.7*scale, 0.8*scale, 1.2*scale), CA(0, MR(180), MR(55)))
  341. local Weapon = Instance.new("Model")
  342. Weapon.Name = "Cannon"
  343. local HB = Part(Weapon, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  344. local HBW = Weld(Rarm, HB, CN(0, -0.7*scale, 0), CA(0, MR(90), MR(90)))
  345. local HW = Weld(HB, nil)
  346. local Handle = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(0.5*scale, 0.5*scale, 0.3*scale))
  347. Add.Mesh(Handle, "http://www.roblox.com/asset/?id=3270017", V3(1*scale, 0.7*scale, 2.2*scale), "")
  348. TW.Part1 = Handle
  349. local Main = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(1.5*scale, 1.5*scale, 3*scale))
  350. Add.Mesh(Main, "http://www.roblox.com/asset/?id=3270017", V3(1.6*scale, 1.6*scale, 15*scale), "")
  351. Weld(Handle, Main, CA(0, MR(90), MR(90)), CN(1*scale, 0, 0.2*scale))
  352. local Main2 = Part(Weapon, false, false, 0, 0, BN("Gun metallic"), V3(1*scale, 1*scale, 1.5*scale))
  353. Add.Mesh(Main2, "http://www.roblox.com/asset/?id=3270017", V3(1.2*scale, 1.2*scale, 8*scale), "")
  354. Weld(Main, Main2, CN(), CN(0, 0, 1.7*scale))
  355. local Handle2 = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(0.5*scale, 0.5*scale, 0.3*scale))
  356. Add.Mesh(Handle2, "http://www.roblox.com/asset/?id=3270017", V3(0.7*scale, 0.8*scale, 2.2*scale), "")
  357. Weld(Main2, Handle2, CA(0, MR(90), MR(90)), CN(-0.65*scale, 0, 0))
  358. local Tip = Part(Weapon, false, false, 0, 0, BN("Earth yellow"), V3(1.6*scale, 1.6*scale, 0.6*scale))
  359. Add.Sphere(Tip, V3(1.05, 1.05, 1))
  360. Weld(Main, Tip, CN(), CN(0, 0, -1.15*scale))
  361. local Tip4 = Part(Weapon, false, false, 0, 0, BN("Black"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  362. Add.Mesh(Tip4, "http://www.roblox.com/asset/?id=3270017", V3(1.7*scale, 1.7*scale, 10*scale), "")
  363. Weld(Main, Tip4, CN(), CN(0, 0, -0.15*scale))
  364. for i = 1.3, 1.45, 0.1 do
  365. local Tip3 = Part(Weapon, false, false, 0, 0, BN("Dark grey"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  366. Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=3270017", V3(i*scale, i*scale, 2*scale), "")
  367. Weld(Main2, Tip3, CN(), CN(0, 0, 0.6*scale))
  368. end
  369. for i = -0.95, 0.66, 1.55 do
  370. local Tip3 = Part(Weapon, false, false, 0, 0, BN("Dark Curry"), V3(1.2*scale, 1.2*scale, 0.3*scale))
  371. Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=3270017", V3(1.65*scale, 1.65*scale, 3*scale), "")
  372. Weld(Main, Tip3, CN(), CN(0, 0, i*scale))
  373. end
  374. for i = 1.3, 1.5, 0.1 do
  375. local Tip2 = Part(Weapon, false, false, 0, 0, BN("Earth yellow"), V3(1.6*scale, 1.6*scale, 0.6*scale))
  376. Add.Mesh(Tip2, "http://www.roblox.com/asset/?id=3270017", V3(i*scale, i*scale, 2*scale), "")
  377. Weld(Main, Tip2, CN(), CN(0, 0, 1.1*scale))
  378. end
  379. for i = -0.3, 1, 0.15 do
  380. local p = Part(Weapon, false, false, 0.7, 0, BN("Black"), V3(0.2, 0.2, 0.2))
  381. Add.Sphere(p, V3(6*scale, 6*scale, 2*scale))
  382. Weld(Main2, p, CN(0, 0, i*scale))
  383. end
  384. Weapon.Parent = Model
  385. Model.Parent = Char
  386.  
  387. local function Show_Damage(P, D)
  388. local mo = Instance.new("Model")
  389. mo.Name = "- "..D
  390. local p = Part(mo, false, false, 0, 0, BN("Bright red"), V3(0.2, 0.2, 0.2))
  391. p.Name = "Head"
  392. local m = Instance.new("SpecialMesh")
  393. m.MeshType = "Brick"
  394. m.Scale = Vector3.new(4.5, 2.3, 4.5)
  395. m.Parent = p
  396. local bp = Instance.new("BodyPosition", p)
  397. bp.maxForce = V3(MH, MH, MH)
  398. bp.P = 9001
  399. bp.position = CN(P) * CN(0, 1.5, 0).p
  400. local h = Instance.new("Humanoid")
  401. h.Health = 0
  402. h.MaxHealth = 0
  403. h.Name = "asd"
  404. h.Parent = mo
  405. local nah = true
  406. mo.Parent = workspace
  407. p.CFrame = CN(P)
  408. Notime(function()
  409. wait(1.5)
  410. for i = 0, 1, 0.05 do
  411. p.Transparency = i
  412. if nah then mo.Name = "" nah = false else mo.Name = "- "..D nah = true end
  413. wait()
  414. end
  415. mo:remove()
  416. end)
  417. end
  418. local function Kill(hit)
  419. if Debounce and Hurt then
  420. local Hu = GetHum(hit.Parent)
  421. if Hu then
  422. Debounce = false
  423. local Dmg = MRA(Damage[1], Damage[2])
  424. Hu.Health = Hu.Health - Dmg
  425. pcall(function() Show_Damage(Tip.Position, Dmg) end)
  426. PlaySound(Sounds.Hit, true)
  427. local chance = MRA(1, 10)
  428. if chance >=5 then
  429. Hu.PlatformStand = true
  430. wait(0.1)
  431. hit.Velocity = (CN(Torso.CFrame * CN(0, 0.5, 0).p, hit.Position).lookVector * 45)
  432. hit.RotVelocity = V3(MRA(-10, 10), MRA(-10, 10), MRA(-10, 10))
  433. wait(0.3)
  434. Hu.PlatformStand = false
  435. end
  436. end
  437. end
  438. end
  439. Main.Touched:connect(Kill)
  440. local function Attach(t)
  441. RSH.Part0 = t
  442. LSH.Part0 = t
  443. RH.Part0 = t
  444. LH.Part0 = t
  445. RABW.Part0 = t
  446. LABW.Part0 = t
  447. LLBW.Part0 = t
  448. RLBW.Part0 = t
  449. if t == Torso then
  450. FTorso.Transparency = 1
  451. else
  452. Torso.Transparency = 1
  453. end
  454. t.Transparency = 0
  455. end
  456. local function SelectAnim()
  457. RAW.Part1 = Rarm
  458. for i = 0.25, 1, 0.25 do
  459. RAW.C0 = CA(MR(-10*i), 0, MR(-5*i))
  460. wait()
  461. end
  462. for i = 0.1, 1, 0.1 do
  463. RAW.C0 = CA(MR(-10-90*i), 0, MR(-5-30*i))
  464. wait()
  465. end
  466. for i = 0.5, 1, 0.5 do
  467. RAW.C0 = CA(MR(-100-5*i), 0, MR(-35))
  468. wait()
  469. end
  470. HW.Part1 = Handle
  471. HW.C0 = CA(MR(50), 0, MR(-37))
  472. TW.Part1 = nil
  473. Attach(FTorso)
  474. LAW.Part1 = Larm
  475. for i = 0.25, 1, 0.25 do
  476. RAW.C0 = CA(MR(-105+10*i), 0, MR(-35+5*i))
  477. LAW.C0 = CA(MR(15*i), 0, MR(5*i))
  478. FW.C0 = CA(0, MR(-5*i), 0)
  479. HW.C0 = CA(MR(50-5*i), 0, MR(-37))
  480. wait()
  481. end
  482. for i = 0.06, 1, 0.06 do
  483. RAW.C0 = CA(MR(-95+95*i), MR(35*i), MR(-30+50*i))
  484. LAW.C0 = CA(MR(15+25*i), 0, MR(5+15*i)) * CN(0, (-0.4*scale)*i, 0)
  485. FW.C0 = CA(0, MR(-5-30*i), 0)
  486. HW.C0 = CA(MR(45), 0, MR(-37+15*i))
  487. wait()
  488. end
  489. Hum.WalkSpeed = Speed-3
  490. for i = 0.1, 1, 0.1 do
  491. RAW.C0 = CA(MR(15*i), MR(35+10*i), MR(20+8*i))
  492. LAW.C0 = CA(MR(40+7*i), 0, MR(20+6*i)) * CN(0, (-0.4*scale)-(0.2*scale)*i, 0)
  493. FW.C0 = CA(0, MR(-35-10*i), 0)
  494. HW.C0 = CA(MR(45-11*i), 0, MR(-22+15*i))
  495. wait()
  496. end
  497. for i = 0.25, 1, 0.25 do
  498. RAW.C0 = CA(MR(15+5*i), MR(45+5*i), MR(28+2*i))
  499. LAW.C0 = CA(MR(47+3*i), 0, MR(26+4*i)) * CN(0, -0.6*scale, 0)
  500. FW.C0 = CA(0, MR(-45-5*i), 0)
  501. HW.C0 = CA(MR(34-4*i), 0, MR(-7+7*i))
  502. wait()
  503. end
  504. end
  505. local function DeselAnim()
  506. for i = 0.25, 1, 0.25 do
  507. RAW.C0 = CA(MR(20-5*i), MR(50-5*i), MR(30-5*i))
  508. LAW.C0 = CA(MR(50-5*i), 0, MR(30-5*i)) * CN(0, -((0.6+0.1)*scale)*i, 0)
  509. FW.C0 = CA(0, MR(-50+5*i), 0)
  510. HW.C0 = CA(MR(30+5*i), 0, MR(-10*i))
  511. wait()
  512. end
  513. for i = 0.15, 1, 0.15 do
  514. RAW.C0 = CA(MR(15-30*i), MR(45-10*i), MR(25-5*i))
  515. LAW.C0 = CA(MR(45-20*i), 0, MR(25-15*i)) * CN(0, -0.5+0.2*i, 0)
  516. FW.C0 = CA(0, MR(-45+10*i), 0)
  517. HW.C0 = CA(MR(35+10*i), 0, MR(-10-15*i))
  518. wait()
  519. end
  520. for i = 0.12, 1, 0.12 do
  521. RAW.C0 = CA(MR(-15-70*i), MR(35-30*i), MR(20-30*i))
  522. LAW.C0 = CA(MR(25-25*i), 0, MR(10-10*i)) * CN(0, -0.3+0.3*i, 0)
  523. FW.C0 = CA(0, MR(-35+20*i), 0)
  524. HW.C0 = CA(MR(45+5*i), 0, MR(-25-12*i))
  525. wait()
  526. end
  527. LAW.Part1 = nil
  528. HW.C0 = CA(MR(50), 0, MR(-37))
  529. for i = 0.25, 1, 0.25 do
  530. RAW.C0 = CA(MR(-85-20*i), MR(5-5*i), MR(-10-25*i))
  531. FW.C0 = CA(0, MR(-15+15*i), 0)
  532. wait()
  533. end
  534. Attach(Torso)
  535. HW.Part1 = nil
  536. TW.Part1 = Handle
  537. Hum.WalkSpeed = 16
  538. for i = 0.15, 1, 0.15 do
  539. RAW.C0 = CA(MR(-105+95*i), 0, MR(-35+30*i))
  540. wait()
  541. end
  542. for i = 0.33, 1, 0.33 do
  543. RAW.C0 = CA(MR(-10+10*i), 0, MR(-5+5*i))
  544. wait()
  545. end
  546. RAW.Part1 = nil
  547. end
  548. local function Explode(Par, Pos, surface)
  549. Notime(function()
  550. local cf = CN(Pos) * CA(Par.CFrame:toEulerAnglesXYZ()) * surface[2] * CN(0, 1, 0)
  551. local col = Par.BrickColor.Color
  552. local r, g, b = col.r, col.g, col.b
  553. local col1, col2, col3 = C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100), C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100), C3(MRA(r*60, r*100)/100, MRA(g*60, g*100)/100, MRA(b*60, b*100)/100)
  554. local p = Part(workspace, true, false, 0, 0, BN(col1.r, col1.g, col1.b), V3(0.2, 0.2, 0.2))
  555. local p2 = Part(workspace, true, false, 0, 0, BN(col2.r, col2.g, col2.b), V3(0.2, 0.2, 0.2))
  556. local p3 = Part(workspace, true, false, 0, 0, BN(col3.r, col3.g, col3.b), V3(0.2, 0.2, 0.2))
  557. p.CFrame = cf
  558. p2.CFrame = cf
  559. p3.CFrame = cf
  560. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  561. local m2 = Add.Mesh(p2, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  562. local m3 = Add.Mesh(p3, "http://www.roblox.com/asset/?id=20329976", V3(1, 1, 1))
  563. for i = -0.2, 1, 0.12 do
  564. p2.Transparency = i+0.1
  565. p.Transparency = i
  566. p3.Transparency = i+0.2
  567. m.Scale = V3(scale+(2.5*scale)*i, (1.4*scale)+scale*i, scale+(2.5*scale)*i)
  568. m2.Scale = V3((0.8*scale)+(2*scale)*i, (1.2*scale)+scale*i, (0.8*scale)+(2*scale)*i)
  569. m3.Scale = V3((0.5*scale)+scale*i, scale+scale*i, (0.5*scale)+scale*i)
  570. wait()
  571. end
  572. p2:remove()
  573. p3:remove()
  574. p:remove()
  575. end)
  576. end
  577. local function Shoot(Pos)
  578. coroutine.resume(coroutine.create(function()
  579. local acc = Accuracy*100
  580. local Start = Main2.CFrame * CN(0, 0, -0.5).p
  581. local Face = CN(Start, Pos) * CA(MR(MRA(-acc, acc))/100, MR(MRA(-acc, acc))/100, MR(MRA(-acc, acc))/100)
  582. local Cannonball = Part(Model, true, false, 0, 0, BN("Black"), V3(1.3*scale, 1.3*scale, 1.3*scale))
  583. Add.Sphere(Cannonball)
  584. Cannonball.CFrame = Face
  585. local Go = 3*scale
  586. local Drop = 0.55/(Go*3)
  587. local Dist = 500*scale
  588. local lastP = Start
  589. local omg = 0
  590. for i = Go, Dist, Go do
  591. Drop = Drop + 1/(Go*3)
  592. omg = omg + Drop
  593. local dropping = CA(MR(-Drop), 0, 0)
  594. if omg > 130 then
  595. dropping = CN()
  596. end
  597. Face = Face * dropping * CN(0, 0, -Go)
  598. Cannonball.CFrame = Face
  599. local Magn = (Face.p - lastP).magnitude
  600. local T = Part(Model, true, false, 0.1, 0, BN("Mid gray"), V3(0.2, 1, 0.2))
  601. local M = Instance.new("SpecialMesh",T)
  602. M.MeshType = "Head"
  603. M.Scale = V3(4.5*scale, Magn, 4.5*scale)
  604. T.CFrame = CN(lastP, Face.p) * CA(MR(-90), 0, 0) * CN(0, Magn/2, 0)
  605. Notime(function()
  606. wait(0.1)
  607. for i = 0.1, 1, 0.1 do
  608. T.Transparency = i+0.1
  609. M.Scale = V3(5-5*i, Magn+0.5, 5-5*i)
  610. wait()
  611. end
  612. T:remove()
  613. end)
  614. local Hit, Hitpos = RayC(lastP, Face.p, Go*2, Char)
  615. lastP = Face.p
  616. if Hit then
  617. PlaySound(Sounds.Boom, true)
  618. local s = DetectSurface(Hitpos, Hit)
  619. Explode(Hit, Hitpos, s)
  620. Cannonball.CFrame = CN(Hitpos)
  621. local hu = GetHum(Hit.Parent)
  622. if hu == nil and Hit.Parent.className ~= "Hat" and Hit.Anchored then
  623. coroutine.resume(coroutine.create(function()
  624. wait(10)
  625. for i = 0, 1, 0.04 do
  626. Cannonball.Transparency = i
  627. wait()
  628. end
  629. Cannonball:remove()
  630. end))
  631. else
  632. Cannonball:remove()
  633. end
  634. local Noobs = GetGroup(Hitpos, 5*scale, Hit)
  635. for _,v in pairs(Noobs) do
  636. local dm = 60/((v[3]+3)/3)
  637. local multi = (scale+10)/10
  638. dm = MRA(dm*0.9, dm*1.04)*multi
  639. v[1].Health = v[1].Health - dm
  640. local t = v[2]:findFirstChild("Head")
  641. if t then
  642. Show_Damage(t.Position, dm)
  643. end
  644. end
  645. local Parts = GetParts(Hitpos, 6*scale)
  646. for _,v in pairs(Parts) do
  647. if v[3] == false then
  648. Notime(function()
  649. if v[1].Name == "Brick wall" then
  650. v[1]:BreakJoints()
  651. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (110/((v[2]+2)/3)))
  652. wait(0.1)
  653. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (110/((v[2]+2)/3)))
  654. else
  655. v[1].Velocity = (CN(Hitpos, v[1].Position).lookVector * (80/((v[2]+2)/3)))
  656. end
  657. end)
  658. end
  659. end
  660. break
  661. end
  662. wait()
  663. end
  664. end))
  665. end
  666. local function ShootAnim(pos)
  667. RLW.Part1 = Rleg
  668. LLW.Part1 = Lleg
  669. local cf = ComputePos(Torso.Position, pos)
  670. local bp = Instance.new("BodyPosition",Torso)
  671. bp.maxForce = V3(MH, 0, MH)
  672. bp.P = 11000
  673. PlaySound(Sounds.Shoot, true)
  674. local effect = Part(Model, false, false, 0, 0, BN(ShootColors[MRA(1,#ShootColors)]), V3(0.2, 0.2, 0.2))
  675. local effect2 = Part(Model, false, false, 0, 0, BN(ShootColors[MRA(1,#ShootColors)]), V3(0.2, 0.2, 0.2))
  676. local m1 = Add.Mesh(effect, "http://www.roblox.com/asset/?id=20329976", V3(1,1,1))
  677. local m2 = Add.Mesh(effect2, "http://www.roblox.com/asset/?id=20329976", V3(1,1,1))
  678. local w1 = Weld(Main2, effect, CA(MR(-90), 0, 0), CN(0, -1, 0))
  679. local w2 = Weld(Main2, effect2, CA(MR(-90), 0, 0), CN(0, -1, 0))
  680. for i = 0, 1, 0.5 do
  681. RAW.C0 = CA(MR(20-50*i), MR(50-25*i), MR(30+45*i))
  682. LAW.C0 = CA(MR(50-10*i), 0, MR(30+20*i)) * CN(0, (-0.6*scale)-(0.3*scale)*i, 0)
  683. RLW.C0 = CA(MR(30*i), 0, MR(-15*i))
  684. LLW.C0 = CA(MR(10*i), 0, MR(-35*i))
  685. FW.C0 = CA(MR(5*i), MR(-50-15*i), 0)
  686. HW.C0 = CA(MR(30), MR(35*i), MR(-25*i))
  687. Neck.C0 = necko * CA(MR(10*i), 0, 0)
  688. bp.position = cf * CN(0, 0, (3*scale)*i).p
  689. m1.Scale = V3((0.5*scale)+(0.6*scale)*i, (0.4*scale)+(0.2*scale)*i, (0.5*scale)+(0.6*scale)*i)
  690. m2.Scale = V3((0.3*scale)+(0.5*scale)*i, (0.5*scale)+scale*i, (0.3*scale)+(0.5*scale)*i)
  691. w1.C1 = CN(0, -scale-(0.2*scale)*i, 0)
  692. w2.C1 = CN(0, -scale-(0.5*scale)*i, 0)
  693. effect.Transparency = 0.2*i
  694. effect2.Transparency = 0.2*i
  695. wait()
  696. end
  697. for i = 0.2, 1, 0.2 do
  698. RAW.C0 = CA(MR(-30-10*i), MR(25-5*i), MR(75+5*i))
  699. LAW.C0 = CA(MR(40-5*i), 0, MR(50+5*i)) * CN(0, (-0.9*scale)-(0.05*scale)*i, 0)
  700. RLW.C0 = CA(MR(30+5*i), 0, MR(-15))
  701. LLW.C0 = CA(MR(10+5*i), 0, MR(-35-5*i))
  702. FW.C0 = CA(MR(5+5*i), MR(-65-5*i), 0)
  703. HW.C0 = CA(MR(30), MR(35+5*i), MR(-25-5*i))
  704. Neck.C0 = necko * CA(MR(10+5*i), 0, 0)
  705. bp.position = cf * CN(0, 0, (3*scale)+scale*i).p
  706. m1.Scale = V3(scale+scale*i, (0.7*scale)+(0.9*scale)*i, scale+scale*i)
  707. m2.Scale = V3((0.8*scale)+(0.6*scale)*i, (1.5*scale)+(1.6*scale)*i, (0.8*scale)+(0.6*scale)*i)
  708. w1.C1 = CN(0, (-1.2*scale)-(0.6*scale)*i, 0)
  709. w2.C1 = CN(0, (-1.5*scale)-(1.8*scale)*i, 0)
  710. effect.Transparency = 0.2+0.9*i
  711. effect2.Transparency = 0.2+0.9*i
  712. wait()
  713. end
  714. effect:remove()
  715. effect2:remove()
  716. for i = 0.2, 1, 0.2 do
  717. bp.position = cf * CN(0, 0, (4*scale)+(0.8*scale)*i).p
  718. wait()
  719. end
  720. for i = 0.08, 1, 0.06 do
  721. RAW.C0 = CA(MR(-40+50*i), MR(20+15*i), MR(80-35*i))
  722. LAW.C0 = CA(MR(35-30*i), 0, MR(55-45*i)) * CN(0, (-0.95*scale)+(0.5*scale)*i, 0)
  723. RLW.C0 = CA(MR(35-35*i), 0, MR(-15+25*i))
  724. LLW.C0 = CA(MR(15-15*i), 0, MR(-40+30*i))
  725. FW.C0 = CA(MR(10-7*i), MR(-70+40*i), 0)
  726. HW.C0 = CA(MR(30), MR(40-40*i), MR(-30-10*i))
  727. Neck.C0 = necko * CA(MR(15+5*i), 0, MR(20*i))
  728. bp.position = cf * CN(0, 0, (4.8*scale)+(0.8*scale)*i).p
  729. wait()
  730. end
  731. bp:remove()
  732. for i = 0.33, 1, 0.33 do
  733. RAW.C0 = CA(MR(10+10*i), MR(35+5*i), MR(45-5*i))
  734. LAW.C0 = CA(MR(5), 0, MR(10)) * CN(0, (-0.45*scale)+(0.1*scale)*i, 0)
  735. FW.C0 = CA(MR(3-3*i), MR(-30+5*i), 0)
  736. HW.C0 = CA(MR(30), 0, MR(-40-10*i))
  737. wait()
  738. end
  739. for i = 0.12, 1, 0.12 do
  740. RAW.C0 = CA(MR(20+5*i), MR(40+5*i), MR(40+5*i))
  741. LAW.C0 = CA(MR(5), 0, MR(10)) * CN(0, (-0.35*scale)-(0.3*scale)*i, 0)
  742. FW.C0 = CA(0, MR(-25+5*i), 0)
  743. HW.C0 = CA(MR(30), 0, MR(-50-5*i))
  744. wait()
  745. end
  746. local b = Part(Model, false, false, 0, 0, BN("Black"), V3(1.1*scale, 1.1*scale, 1.1*scale))
  747. local m = Add.Sphere(b)
  748. local w = Weld(Larm, b, CN(), CN(0, 1.4*scale, 0))
  749. for i = 0.16, 1, 0.16 do
  750. LAW.C0 = CA(MR(5+30*i), 0, MR(10+10*i)) * CN(0, (-0.65*scale)+(0.65*scale)*i, 0)
  751. RAW.C0 = CA(MR(25), MR(45+3*i), MR(40))
  752. m.Scale = V3(0.5+0.5*i, 0.5+0.5*i, 0.5+0.5*i)
  753. Neck.C0 = necko * CA(MR(20-10*i), 0, MR(20-15*i))
  754. wait()
  755. end
  756. for i = 0.1, 1, 0.1 do
  757. LAW.C0 = CA(MR(35+105*i), 0, MR(20+20*i)) * CN(0, (-0.9*scale)*i, 0)
  758. RAW.C0 = CA(MR(25), MR(48+6*i), MR(40))
  759. Neck.C0 = necko * CA(MR(10-10*i), 0, MR(5-35*i))
  760. wait()
  761. end
  762. for i = 0.16, 1, 0.16 do
  763. LAW.C0 = CA(MR(140-10*i), 0, MR(40-15*i)) * CN(0, (-0.9*scale)-(0.2*scale)*i, 0)
  764. RAW.C0 = CA(MR(25), MR(54), MR(40))
  765. Neck.C0 = necko * CA(MR(5*i), 0, MR(-30))
  766. w.C0 = CN((1.5*scale)*i, (0.55*scale)*i, (1.1*scale)*i)
  767. wait()
  768. end
  769. PlaySound(Sounds.Reload, true)
  770. b:remove()
  771. w:remove()
  772. for i = 0.2, 1, 0.2 do
  773. LAW.C0 = CA(MR(130-10*i), 0, MR(25-15*i)) * CN(0, (-1.1*scale)+(0.2*scale)*i, 0)
  774. RAW.C0 = CA(MR(25-10*i), MR(54), MR(40))
  775. Neck.C0 = necko * CA(MR(5-3*i), 0, MR(-30+5*i))
  776. HW.C0 = CA(MR(30), 0, MR(-55+10*i))
  777. FW.C0 = CA(0, MR(-20-5*i), 0)
  778. wait()
  779. end
  780. for i = 0.11, 1, 0.11 do
  781. LAW.C0 = CA(MR(120-60*i), 0, MR(10+15*i)) * CN(0, (-0.9*scale)+(0.3*scale)*i, 0)
  782. RAW.C0 = CA(MR(15+5*i), MR(54-4*i), MR(40-10*i))
  783. Neck.C0 = necko * CA(MR(2-2*i), 0, MR(-25+25*i))
  784. HW.C0 = CA(MR(30), 0, MR(-45+45*i))
  785. FW.C0 = CA(0, MR(-25-20*i), 0)
  786. RLW.C0 = CA(0, 0, MR(10-8*i))
  787. LLW.C0 = CA(0, 0, MR(-10+8*i))
  788. wait()
  789. end
  790. Neck.C0 = necko
  791. for i = 0.25, 1, 0.25 do
  792. LAW.C0 = CA(MR(60-10*i), 0, MR(25+5*i)) * CN(0, -0.6*scale, 0)
  793. RAW.C0 = CA(MR(20), MR(50), MR(30))
  794. HW.C0 = CA(MR(30), 0, 0)
  795. FW.C0 = CA(0, MR(-45-5*i), 0)
  796. RLW.C0 = CA(0, 0, MR(2-2*i))
  797. LLW.C0 = CA(0, 0, MR(-2+2*i))
  798. wait()
  799. end
  800. RLW.Part1 = nil
  801. LLW.Part1 = nil
  802. RAW.C0 = CA(MR(20), MR(50), MR(30))
  803. LAW.C0 = CA(MR(50), 0, MR(30)) * CN(0, -0.6*scale, 0)
  804. FW.C0 = CA(0, MR(-50), 0)
  805. HW.C0 = CA(MR(30), 0, 0)
  806. Neck.C0 = necko
  807. end
  808. local function Melee()
  809. PlaySound(Sounds.Slash, true)
  810. for i = 0.25, 1, 0.25 do
  811. RAW.C0 = CA(MR(20+5*i), MR(50-5*i), MR(30+3*i))
  812. LAW.C0 = CA(MR(50), 0, MR(30+4*i)) * CN(0, (-0.6*scale)-(0.05*scale)*i, 0)
  813. HW.C0 = CA(MR(30), MR(5*i), 0)
  814. FW.C0 = CA(0, MR(-50-5*i), 0)
  815. wait()
  816. end
  817. for i = 0.12, 1, 0.12 do
  818. RAW.C0 = CA(MR(25+25*i), MR(45-30*i), MR(33+7*i))
  819. LAW.C0 = CA(MR(50), 0, MR(34+11*i)) * CN(0, (-0.65*scale)-(0.25*scale)*i, 0)
  820. HW.C0 = CA(MR(30), MR(5+25*i), 0)
  821. FW.C0 = CA(0, MR(-55-25*i), 0)
  822. wait()
  823. end
  824. for i = 0.33, 1, 0.33 do
  825. RAW.C0 = CA(MR(50+15*i), MR(15-5*i), MR(40-10*i)) * CN(0, (-0.2*scale)*i, 0)
  826. LAW.C0 = CA(MR(50+10*i), 0, MR(45-5*i)) * CN(0, (-0.9*scale)+(0.15*scale)*i, 0)
  827. HW.C0 = CA(MR(30+2*i), MR(30+5*i), 0)
  828. FW.C0 = CA(0, MR(-80+10*i), MR(-5*i))
  829. wait()
  830. end
  831. Hurt = true
  832. Debounce = true
  833. for i = 0.07, 1, 0.07 do
  834. RAW.C0 = CA(MR(65+55*i), MR(10), MR(30-70*i)) * CN(0, (-0.2*scale)-(1.1*scale)*i, 0)
  835. LAW.C0 = CA(MR(60+120*i), 0, MR(40-70*i)) * CN(0, (-0.75*scale)+(0.7*scale)*i, 0)
  836. HW.C0 = CA(MR(32+6*i), MR(35+20*i), MR(-4*i))
  837. FW.C0 = CA(0, MR(-70+110*i), 0)
  838. wait()
  839. end
  840. for i = 0.16, 1, 0.16 do
  841. RAW.C0 = CA(MR(120+10*i), MR(10), MR(-40-5*i)) * CN(0, (-1.3*scale)-(0.1*scale)*i, 0)
  842. LAW.C0 = CA(MR(180+15*i), 0, MR(-30-20*i)) * CN(0, (-0.05*scale)+(0.1*scale)*i, 0)
  843. HW.C0 = CA(MR(38+2*i), MR(55-6*i), MR(-4-1*i))
  844. FW.C0 = CA(0, MR(40+10*i), 0)
  845. wait()
  846. end
  847. Hurt = false
  848. for i = 0.2, 1, 0.2 do
  849. RAW.C0 = CA(MR(130+5*i), MR(10), MR(-45-2*i)) * CN(0, (-1.4*scale)-(0.05*scale)*i, 0)
  850. LAW.C0 = CA(MR(195+5*i), 0, MR(-50-8*i)) * CN(0, (0.05*scale)+(0.05*scale)*i, 0)
  851. HW.C0 = CA(MR(40), MR(49-2*i), MR(-5))
  852. FW.C0 = CA(0, MR(50+3*i), 0)
  853. wait()
  854. end
  855. wait(0.2)
  856. for i = 0.2, 1, 0.2 do
  857. RAW.C0 = CA(MR(135-10*i), MR(10+5*i), MR(-47+10*i)) * CN(0, (-1.45*scale)+(0.25*scale)*i, 0)
  858. LAW.C0 = CA(MR(200-10*i), 0, MR(-58+10*i)) * CN(0, (0.1*scale)-(0.1*scale)*i, 0)
  859. HW.C0 = CA(MR(40), MR(47-5*i), MR(-5+5*i))
  860. FW.C0 = CA(0, MR(53-10*i), 0)
  861. wait()
  862. end
  863. for i = 0.08, 1, 0.08 do
  864. RAW.C0 = CA(MR(125-90*i), MR(15+30*i), MR(-37+57*i)) * CN(0, (-1.2*scale)+(1.1*scale)*i, 0)
  865. LAW.C0 = CA(MR(190-125*i), 0, MR(-48+68*i)) * CN(0, (-0.5*scale)*i, 0)
  866. HW.C0 = CA(MR(40-7*i), MR(42-37*i), 0)
  867. FW.C0 = CA(0, MR(43-82*i), 0)
  868. wait()
  869. end
  870. for i = 0.2, 1, 0.2 do
  871. RAW.C0 = CA(MR(35-15*i), MR(45+5*i), MR(20+10*i)) * CN(0, (-0.1*scale)+(0.1*scale)*i, 0)
  872. LAW.C0 = CA(MR(65-15*i), 0, MR(20+10*i)) * CN(0, (-0.5*scale)-(0.1*scale)*i, 0)
  873. HW.C0 = CA(MR(33-3*i), MR(5-5*i), 0)
  874. FW.C0 = CA(0, MR(-41-9*i), 0)
  875. wait()
  876. end
  877. RLW.Part1 = nil
  878. LLW.Part1 = nil
  879. RAW.C0 = CA(MR(20), MR(50), MR(30))
  880. LAW.C0 = CA(MR(50), 0, MR(30)) * CN(0, -0.6*scale, 0)
  881. FW.C0 = CA(0, MR(-50), 0)
  882. HW.C0 = CA(MR(30), 0, 0)
  883. Neck.C0 = necko
  884. end
  885. wait(1)
  886. Selected = true
  887. SelectAnim()
  888. wait(1.5)
  889. while Hum.Health > 0 do
  890. local list = game.Players:GetPlayers()
  891. local targ = list[MRA(1,#list)].Character:findFirstChild("Torso")
  892. if targ then
  893. local choice = MRA(1,6)
  894. if choice == 1 then
  895. repeat
  896. wait(0.2)
  897. if targ.Parent == nil then break end
  898. Hum:MoveTo(CN(targ.Position, Torso.Position) * CN(0, 0, -(scale)).p, targ)
  899. until (Torso.Position - targ.Position).magnitude < (scale*2)+1
  900. Melee()
  901. else
  902. local bg = Instance.new("BodyGyro")
  903. bg.P = 3000
  904. bg.maxTorque = V3(MH, MH, MH)
  905. bg.cframe = ComputePos(Torso.Position, targ.Position)
  906. bg.Parent = Torso
  907. local pos = Torso.Position
  908. local pos2 = targ.Position
  909. for i = 1, 10, 1 do
  910. wait(0.1)
  911. bg.cframe = ComputePos(Torso.Position, targ.Position)
  912. pos2 = targ.Position
  913. end
  914. bg:remove()
  915. wait(0.2)
  916. if Hum.Health >0 then
  917. local magn = ((Torso.Position - pos2).magnitude+5)/((scale+10)/10)
  918. local pos = pos2 + V3(0, magn/11, 0)
  919. Shoot(pos)
  920. ShootAnim(pos)
  921. local p = RayC(pos, pos-V3(0, 10, 0), scale*4, Char)
  922. if p then
  923. Hum:MoveTo(CN(pos, Torso.Position) * CN(0, 0, -2).p, p)
  924. end
  925. end
  926. end
  927. end
  928. wait(0.2)
  929. end
  930. return Nub
  931. end
  932. for i = 1, 1 do
  933. coroutine.resume(coroutine.create(function()
  934. if game.Players.LocalPlayer ~= nil then
  935. if game.Players.LocalPlayer.Character ~= nil then
  936. if game.Players.LocalPlayer.Character:FindFirstChild("Torso") ~= nil then
  937. local nub = MakeNoob(game.Players.LocalPlayer.Character:FindFirstChild("Torso").Position + V3(0,25,25), 5)
  938. end
  939. end
  940. end
  941. end))
  942. end
Add Comment
Please, Sign In to add comment