Advertisement
artucox7

Gun God(Not Fe)

Jul 24th, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.56 KB | None | 0 0
  1. --// \\--
  2. --|| GunGod Script By artucox7 ||--
  3. --|| ok i will say,Some Animations are taked from the Dead Gun but is totally not a edit ||--
  4. --|| someone teach me how to cframe animation pls ||--
  5. --\\ //--
  6.  
  7.  
  8. local plr = game.Players.LocalPlayer
  9. local char = plr.Character
  10. local hum = char.Humanoid
  11. local Mouse = plr:GetMouse()
  12. local hed = char.Head
  13. local tors = char.Torso
  14. local RP = char["HumanoidRootPart"]
  15. local LA = char["Left Arm"]
  16. local RA = char["Right Arm"]
  17. local LL = char["Left Leg"]
  18. local RL = char["Right Leg"]
  19. local equipped = false
  20. local Rgun = 0
  21. local Lgun = 0
  22. local fired = false
  23. local candeleteffect = false
  24. local MAINRUINCOLOR = BrickColor.new("Really red")
  25. local cam = game.Workspace.CurrentCamera
  26. candeleteffect = false
  27. Rgun = 0
  28. Lgun = 0
  29. fired = false
  30. equipped = false
  31. RJ = RP["RootJoint"]
  32. NK = tors["Neck"]
  33. RS = tors["Right Shoulder"]
  34. LS = tors["Left Shoulder"]
  35. RH = tors["Right Hip"]
  36. LH = tors["Left Hip"]
  37. radian = math.rad
  38. random = math.random
  39. Animation_Speed = 1.40
  40. Fire_Anim_Speed = 3
  41. Player_Size = 1
  42.  
  43. IT = Instance.new
  44. CF = CFrame.new
  45. VT = Vector3.new
  46. RAD = math.rad
  47. C3 = Color3.new
  48. UD2 = UDim2.new
  49. BRICKC = BrickColor.new
  50. ANGLES = CFrame.Angles
  51. EULER = CFrame.fromEulerAnglesXYZ
  52. COS = math.cos
  53. ACOS = math.acos
  54. SIN = math.sin
  55. ASIN = math.asin
  56. ABS = math.abs
  57. MRANDOM = math.random
  58. FLOOR = math.floor
  59.  
  60. local FORCERESET = false
  61. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  62. local Speed = 16
  63. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  64. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  65. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  66. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  67. local DAMAGEMULTIPLIER = 1
  68. local ANIM = "Idle"
  69. local ATTACK = false
  70. local EQUIPPED = false
  71. local HOLD = false
  72. local COMBO = 1
  73. local Rooted = false
  74. local SINE = 0
  75. local KEYHOLD = false
  76. local CHANGE = 2 / Animation_Speed
  77. local WALKINGANIM = false
  78. local VALUE1 = false
  79. local VALUE2 = false
  80. local Rooted = false
  81. local ROBLOXIDLEANIMATION = IT("Animation")
  82. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  83. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  84. --ROBLOXIDLEANIMATION.Parent = Humanoid
  85. local ANIMATOR = hum.Animator
  86. local ANIMATE = char:WaitForChild("Animate")
  87. local UNANCHOR = true
  88. local TOBANISH = {}
  89.  
  90. ANIMATE.idle.Animation2:Destroy()
  91.  
  92. --Sound
  93.  
  94. local Sound = Instance.new("Sound",tors)
  95. function NewTheme(ID,VOL)
  96. Sound.Volume = VOL
  97. Sound.Looped = true
  98. Sound.SoundId = "rbxassetid://"..ID
  99. Sound:Play()
  100. end
  101.  
  102. --functions
  103.  
  104. function DMG(AMT,PART)
  105. local AMTD = AMT
  106. PART.Touched:Connect(function(TCH)
  107. wait(0.2)
  108. TCH.Parent.Humanoid.Health = TCH.Parent.Humanoid.Health - AMT
  109. wait(0.2)
  110. PART:Destroy()
  111. end)
  112. end
  113.  
  114. function chatfunc(Text)
  115. local chat = coroutine.wrap(function()
  116. if char:FindFirstChild("TalkingBillBoard")~= nil then
  117. char:FindFirstChild("TalkingBillBoard"):destroy()
  118. end
  119. local Bill = Instance.new("BillboardGui",char)
  120. Bill.Size = UDim2.new(0,100,0,40)
  121. Bill.StudsOffset = Vector3.new(0,3.5,0)
  122. Bill.Adornee = hed
  123. Bill.Name = "TalkingBillBoard"
  124. local Hehe = Instance.new("TextLabel",Bill)
  125. Hehe.BackgroundTransparency = 1
  126. Hehe.BorderSizePixel = 0
  127. Hehe.Text = Text
  128. Hehe.Font = "Bodoni"
  129. Hehe.TextSize = 40
  130. Hehe.TextStrokeTransparency = 0
  131. Hehe.TextColor3 = Color3.new(1,0,0)
  132. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  133. Hehe.Size = UDim2.new(1,0,0.5,0)
  134. coroutine.resume(coroutine.create(function()
  135. while Hehe ~= nil do
  136. wait(0.1)
  137. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  138. Hehe.Rotation = math.random(-2.5,2.5)
  139. end
  140. end))
  141. for i = 1,string.len(Text) do
  142. wait(0.01)
  143. Hehe.Text = string.sub(Text,1,i)
  144. end
  145. wait(0.1)--Re[math.random(1, 93)]
  146. for i = 0, 1, .025 do
  147. wait(0.1)
  148. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  149. Hehe.TextStrokeTransparency = i
  150. Hehe.TextTransparency = i
  151. end
  152. Bill:Destroy()
  153. end)
  154. chat()
  155. end
  156.  
  157. function onChatted(msg)
  158. wait(0.1)
  159. chatfunc(msg.." ")
  160. end
  161. plr.Chatted:Connect(onChatted)
  162.  
  163. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  164. local type = type
  165. local rng = Instance.new("Part", char)
  166. rng.Anchored = true
  167. rng.BrickColor = color
  168. rng.CanCollide = false
  169. rng.FormFactor = 3
  170. rng.Name = "Ring"
  171. rng.Material = "Neon"
  172. rng.Size = Vector3.new(1, 1, 1)
  173. rng.Transparency = 0
  174. rng.TopSurface = 0
  175. rng.BottomSurface = 0
  176. rng.CFrame = pos
  177. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  178. local rngm = Instance.new("SpecialMesh", rng)
  179. rngm.MeshType = "Sphere"
  180. rngm.Scale = Vector3.new(x1,y1,z1)
  181. end
  182.  
  183. function Fire(GUN,RANGE)
  184. local Bullet = Instance.new("Part")
  185. local BWeld = Instance.new("Weld", Bullet)
  186. local CRANGE = 0
  187. Bullet.Name = "Bullet"
  188. Bullet.BrickColor = BrickColor.new("Really red")
  189. Bullet.Material = Enum.Material.Neon
  190. Bullet.CanCollide = false
  191. Bullet.Massless = true
  192. CRANGE = 0
  193. BWeld.Part0 = Bullet
  194. Bullet.Size = Vector3.new(0.1,RANGE,0.1)
  195. if GUN == "gun = 1" then
  196. Bullet.Parent = char.RAG.Revolver
  197. BWeld.Part1 = Bullet.Parent.Shot
  198. CRANGE = RANGE - 50
  199. BWeld.C0 = CFrame.new(0,-CRANGE,0)
  200. DMG(10,Bullet)
  201.  
  202. end
  203.  
  204. if GUN == "gun = 2" then
  205. Bullet.Parent = char.RAG.ShotGun
  206. BWeld.Part1 = Bullet.Parent.Shot
  207. CRANGE = RANGE - 50
  208. BWeld.C0 = CFrame.new(0,-CRANGE,0)
  209. DMG(30,Bullet)
  210. end
  211.  
  212. if GUN == "gun = 3" then
  213. Bullet.Parent = char.LAG.SMG
  214. BWeld.Part1 = Bullet.Parent.Shot
  215. CRANGE = RANGE - 50
  216. BWeld.C0 = CFrame.new(0,-CRANGE,0)
  217.  
  218. DMG(5,Bullet)
  219. end
  220.  
  221. if GUN == "gun = 4" then
  222. Bullet.Parent = char.LAG.Tommy
  223. BWeld.Part1 = Bullet.Parent.Shot
  224. CRANGE = RANGE - 50
  225. BWeld.C0 = CFrame.new(0,-CRANGE,0)
  226. DMG(10,Bullet)
  227. end
  228. for i = 0.1,10 do
  229. Bullet.Transparency = Bullet.Transparency + 0.1
  230. wait(0.1)
  231. end
  232. Bullet:Destroy()
  233. end
  234.  
  235. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  236. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  237. end
  238.  
  239. function QuaternionFromCFrame(cf)
  240. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  241. local trace = m00 + m11 + m22
  242. if trace > 0 then
  243. local s = math.sqrt(1 + trace)
  244. local recip = 0.5 / s
  245. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  246. else
  247. local i = 0
  248. if m11 > m00 then
  249. i = 1
  250. end
  251. if m22 > (i == 0 and m00 or m11) then
  252. i = 2
  253. end
  254. if i == 0 then
  255. local s = math.sqrt(m00 - m11 - m22 + 1)
  256. local recip = 0.5 / s
  257. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  258. elseif i == 1 then
  259. local s = math.sqrt(m11 - m22 - m00 + 1)
  260. local recip = 0.5 / s
  261. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  262. elseif i == 2 then
  263. local s = math.sqrt(m22 - m00 - m11 + 1)
  264. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  265. end
  266. end
  267. end
  268.  
  269. function CameraEnshaking(Length,Intensity)
  270. coroutine.resume(coroutine.create(function()
  271. local intensity = 1*Intensity
  272. local rotM = 0.01*Intensity
  273. for i = 0, Length, 0.1 do
  274. wait(0.01)
  275. intensity = intensity - 0.05*Intensity/Length
  276. rotM = rotM - 0.0005*Intensity/Length
  277. hum.CameraOffset = Vector3.new(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  278. cam.CFrame = cam.CFrame * CF(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * EULER(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  279. end
  280. hum.CameraOffset = Vector3.new(0, 0, 0)
  281. end))
  282. end
  283.  
  284.  
  285. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  286. local xs, ys, zs = x + x, y + y, z + z
  287. local wx, wy, wz = w * xs, w * ys, w * zs
  288. local xx = x * xs
  289. local xy = x * ys
  290. local xz = x * zs
  291. local yy = y * ys
  292. local yz = y * zs
  293. local zz = z * zs
  294. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  295. end
  296.  
  297. function QuaternionSlerp(a, b, t)
  298. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  299. local startInterp, finishInterp;
  300. if cosTheta >= 0.0001 then
  301. if (1 - cosTheta) > 0.0001 then
  302. local theta = ACOS(cosTheta)
  303. local invSinTheta = 1 / SIN(theta)
  304. startInterp = SIN((1 - t) * theta) * invSinTheta
  305. finishInterp = SIN(t * theta) * invSinTheta
  306. else
  307. startInterp = 1 - t
  308. finishInterp = t
  309. end
  310. else
  311. if (1 + cosTheta) > 0.0001 then
  312. local theta = ACOS(-cosTheta)
  313. local invSinTheta = 1 / SIN(theta)
  314. startInterp = SIN((t - 1) * theta) * invSinTheta
  315. finishInterp = SIN(t * theta) * invSinTheta
  316. else
  317. startInterp = t - 1
  318. finishInterp = t
  319. end
  320. end
  321. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  322. end
  323.  
  324. function turnto(position)
  325. RP.CFrame=CFrame.new(RP.CFrame.p,VT(position.X,RP.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  326. end
  327.  
  328. function Clerp(a, b, t)
  329. local qa = {QuaternionFromCFrame(a)}
  330. local qb = {QuaternionFromCFrame(b)}
  331. local ax, ay, az = a.x, a.y, a.z
  332. local bx, by, bz = b.x, b.y, b.z
  333. local _t = 1 - t
  334. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  335. end
  336.  
  337. function sphere(bonuspeed,type,pos,scale,value,color)
  338. local type = type
  339. local rng = Instance.new("Part", char)
  340. rng.Anchored = true
  341. rng.BrickColor = color
  342. rng.CanCollide = false
  343. rng.FormFactor = 3
  344. rng.Name = "Ring"
  345. rng.Material = "Neon"
  346. rng.Size = Vector3.new(1, 1, 1)
  347. rng.Transparency = 0
  348. rng.TopSurface = 0
  349. rng.BottomSurface = 0
  350. rng.CFrame = pos
  351. local rngm = Instance.new("SpecialMesh", rng)
  352. rngm.MeshType = "Sphere"
  353. rngm.Scale = scale
  354. end
  355.  
  356. function CreateSound(ID,PARENT,VOL,LOOP)
  357. local Sound = Instance.new("Sound")
  358. Sound.Parent = PARENT
  359. Sound.Name = "SoundEffect"
  360. Sound.Volume = VOL
  361. Sound.Looped = LOOP
  362. Sound.SoundId = "rbxassetid://".. ID
  363. Sound:Play()
  364. end
  365.  
  366. --Intro
  367.  
  368. NewTheme(1564523997,3)
  369. wait(3)
  370. chatfunc("Look At My Hands ")
  371. wait(1)
  372. chatfunc("Im Shaking ")
  373. wait(1)
  374. chatfunc("All My Body is Shaking ")
  375. wait(1.5)
  376. chatfunc("This Is A Dream,Mommy? ")
  377. wait(2.4)
  378. chatfunc("It was there, ")
  379. wait(1.5)
  380. chatfunc("I couldn't move my head but I was watching him in the mirror, ")
  381. wait(2.5)
  382. chatfunc("I knew he was looking at me, with ")
  383. wait(2)
  384. chatfunc("TWO invisible eyes ")
  385. wait(1.2)
  386. chatfunc("TWO invisible,MONSTRUOUS EYES!! ")
  387.  
  388. ANIMATE:Destroy()
  389.  
  390. for i = 1,15 do
  391. RJ.C0 = Clerp(RJ.C0,ROOTC0*CF(0,0,0)* ANGLES(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  392. tors.Neck.C0 = Clerp(tors.Neck.C0,NECKC0 *ANGLES(math.rad(0),math.rad(0),math.rad(0)),0.2)
  393. RS.C0 = Clerp(RS.C0, CFrame.new(1.2,1,-0) * ANGLES(math.rad(90), math.rad(10), math.rad(90)), 0.2)
  394. LS.C0 = Clerp(LS.C0, CFrame.new(-1.2,1,-0) * ANGLES(math.rad(90), math.rad(-10), math.rad(-90)), 0.2)
  395. RH.C0=Clerp(RH.C0,CF(1,-1 - 0.05 * math.cos(SINE / 25),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  396. LH.C0=Clerp(LH.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 25),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  397. wait(0.01)
  398. end
  399.  
  400. wait(2.2)
  401.  
  402. CameraEnshaking(10,20)
  403.  
  404. local ball = Instance.new("Part", tors)
  405. local mesh = Instance.new("SpecialMesh", ball)
  406. local weld = Instance.new("Weld", ball)
  407. ball.Size = Vector3.new(0.1,0.1,0.1)
  408. ball.BrickColor = BrickColor.new("Really red")
  409. ball.Transparency = 0
  410. ball.Material = Enum.Material.Neon
  411. ball.CanCollide = false
  412. ball.Massless = true
  413. mesh.MeshType = Enum.MeshType.Sphere
  414. weld.Part0 = ball
  415. weld.Part1 = tors
  416. CreateSound(258057783,tors,10,false)
  417. for i = 1,100 do
  418. print(""..i)
  419. ball.Size = Vector3.new(i,i,i)
  420. ball.Transparency = ball.Transparency + 0.01
  421. wait(0.01)
  422. end
  423. tors.SoundEffect:Destroy()
  424.  
  425.  
  426. ball:Destroy()
  427.  
  428. --BillGui
  429.  
  430. local NameGui = Instance.new("BillboardGui")
  431. local Text = Instance.new("TextLabel")
  432.  
  433. NameGui.Name = "NameGui"
  434. NameGui.Parent = hed
  435. NameGui.Size = UDim2.new(0, 200, 0, 50)
  436. NameGui.StudsOffset = Vector3.new(0, 2.5, 0)
  437.  
  438. Text.Name = "Text"
  439. Text.Parent = NameGui
  440. Text.BackgroundColor3 = Color3.new(1, 1, 1)
  441. Text.BackgroundTransparency = 1
  442. Text.Size = UDim2.new(0, 200, 0, 50)
  443. Text.Font = Enum.Font.Garamond
  444. Text.Text = "Gun God"
  445. Text.TextColor3 = Color3.new(1, 0, 0)
  446. Text.TextSize = 36
  447. Text.TextStrokeTransparency = 0
  448.  
  449. --Humanoid
  450.  
  451. hum.WalkSpeed = 9.5
  452.  
  453. --Things
  454.  
  455. --Uneqquip Guns
  456.  
  457. local runDummyScript = function(f,scri)
  458. local oldenv = getfenv(f)
  459. local newenv = setmetatable({}, {
  460. __index = function(_, k)
  461. if k:lower() == 'script' then
  462. return scri
  463. else
  464. return oldenv[k]
  465. end
  466. end
  467. })
  468. setfenv(f, newenv)
  469. ypcall(function() f() end)
  470. end
  471. cors = {}
  472. o1 = Instance.new("Model")
  473. o2 = Instance.new("Part")
  474. o3 = Instance.new("Weld")
  475. o4 = Instance.new("Model")
  476. o5 = Instance.new("Part")
  477. o6 = Instance.new("SpecialMesh")
  478. o7 = Instance.new("Weld")
  479. o8 = Instance.new("CFrameValue")
  480. o9 = Instance.new("Model")
  481. o10 = Instance.new("Part")
  482. o11 = Instance.new("SpecialMesh")
  483. o12 = Instance.new("Weld")
  484. o13 = Instance.new("CFrameValue")
  485. o14 = Instance.new("Model")
  486. o15 = Instance.new("Part")
  487. o16 = Instance.new("SpecialMesh")
  488. o17 = Instance.new("Weld")
  489. o18 = Instance.new("CFrameValue")
  490. o19 = Instance.new("Model")
  491. o20 = Instance.new("Part")
  492. o21 = Instance.new("SpecialMesh")
  493. o22 = Instance.new("Weld")
  494. o23 = Instance.new("CFrameValue")
  495. o1.Name = "Guns"
  496. o1.Parent = char
  497. o2.Name = "WeldP"
  498. o2.Parent = o1
  499. o2.BrickColor = BrickColor.new("Bright orange")
  500. o2.Position = Vector3.new(-17.8898621, 4.54695654, 6.44086885)
  501. o2.Rotation = Vector3.new(96.9000015, -89.4400024, 96.7300034)
  502. o2.FormFactor = Enum.FormFactor.Symmetric
  503. o2.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  504. o2.CFrame = CFrame.new(-17.8898621, 4.54695654, 6.44086885, -0.00114236539, -0.00967594888, -0.999952555, -0.00286693405, 0.999949098, -0.00967264082, 0.999995232, 0.0028557484, -0.00117004756)
  505. o2.TopSurface = Enum.SurfaceType.Smooth
  506. o2.Color = Color3.new(0.854902, 0.521569, 0.254902)
  507. o2.Position = Vector3.new(-17.8898621, 4.54695654, 6.44086885)
  508. o2.Orientation = Vector3.new(0.550000012, -90.0699997, -0.159999996)
  509. o2.Color = Color3.new(0.854902, 0.521569, 0.254902)
  510. o3.Name = "TorsoWeld"
  511. o3.Parent = o2
  512. o3.Part0 = o2
  513. o3.Part1 = tors
  514. o4.Name = "ShotGun"
  515. o4.Parent = o1
  516. o5.Name = "Body"
  517. o5.Parent = o4
  518. o5.BrickColor = BrickColor.new("Pastel yellow")
  519. o5.Position = Vector3.new(-18.469511, 4.43292761, 6.72057819)
  520. o5.Rotation = Vector3.new(90.1600037, 0.550000012, 0.0700000003)
  521. o5.FormFactor = Enum.FormFactor.Custom
  522. o5.Size = Vector3.new(0.300000012, 0.899999917, 4.79999924)
  523. o5.CFrame = CFrame.new(-18.469511, 4.43292761, 6.72057819, 0.999952555, -0.00114236539, 0.00967594888, 0.00967264082, -0.00286693405, -0.999949098, 0.00117004756, 0.999995232, -0.0028557484)
  524. o5.BottomSurface = Enum.SurfaceType.Smooth
  525. o5.TopSurface = Enum.SurfaceType.Smooth
  526. o5.Color = Color3.new(1, 1, 0.8)
  527. o5.Position = Vector3.new(-18.469511, 4.43292761, 6.72057819)
  528. o5.Orientation = Vector3.new(89.4199982, 106.440002, 106.510002)
  529. o5.Color = Color3.new(1, 1, 0.8)
  530. o6.Parent = o5
  531. o6.MeshId = "http://www.roblox.com/asset/?id=94219391"
  532. o6.Scale = Vector3.new(0.75, 0.75, 0.75)
  533. o6.TextureId = "http://www.roblox.com/asset/?id=94219470"
  534. o6.MeshType = Enum.MeshType.FileMesh
  535. o6.Scale = Vector3.new(0.75, 0.75, 0.75)
  536. o7.Name = "qCFrameWeldThingy"
  537. o7.Parent = o5
  538. o7.C1 = CFrame.new(0.580396652, -0.280696869, -0.107615709, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  539. o7.Part0 = o2
  540. o7.Part1 = o5
  541. o8.Name = "qRelativeCFrameWeldValue"
  542. o8.Parent = o5
  543. o8.Value = CFrame.new(0.580396652, -0.280696869, -0.107615709, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  544. o9.Name = "SMG"
  545. o9.Parent = o1
  546. o10.Name = "Body"
  547. o10.Parent = o9
  548. o10.BrickColor = BrickColor.new("Dark stone grey")
  549. o10.Position = Vector3.new(-17.9484844, 3.49897623, 5.37621641)
  550. o10.Rotation = Vector3.new(-89.8399963, -0.550000012, -90.0699997)
  551. o10.FormFactor = Enum.FormFactor.Custom
  552. o10.Size = Vector3.new(0.200000003, 1.70000005, 1.39999998)
  553. o10.CFrame = CFrame.new(-17.9484844, 3.49897623, 5.37621641, -0.00114236539, 0.999952674, -0.0096758306, -0.00286693405, 0.00967252254, 0.999949217, 0.999995232, 0.00117004733, 0.00285574887)
  554. o10.BottomSurface = Enum.SurfaceType.Smooth
  555. o10.TopSurface = Enum.SurfaceType.Smooth
  556. o10.Color = Color3.new(0.388235, 0.372549, 0.384314)
  557. o10.Position = Vector3.new(-17.9484844, 3.49897623, 5.37621641)
  558. o10.Orientation = Vector3.new(-89.4199982, -73.5599976, -16.5100002)
  559. o10.Color = Color3.new(0.388235, 0.372549, 0.384314)
  560. o11.Parent = o10
  561. o11.MeshId = "http://www.roblox.com/asset/?id=72012794"
  562. o11.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
  563. o11.TextureId = "http://www.roblox.com/asset/?id=72012761"
  564. o11.VertexColor = Vector3.new(2, 2, 2)
  565. o11.MeshType = Enum.MeshType.FileMesh
  566. o11.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
  567. o12.Name = "qCFrameWeldThingy"
  568. o12.Parent = o10
  569. o12.C1 = CFrame.new(1.06157589, 0.0700016022, 1.05040002, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
  570. o12.Part0 = o2
  571. o12.Part1 = o10
  572. o13.Name = "qRelativeCFrameWeldValue"
  573. o13.Parent = o10
  574. o13.Value = CFrame.new(1.06157589, 0.0700016022, 1.05040002, 1, 0, 0, 0, -1.1920929e-07, -1.00000012, 0, 1.00000012, -1.1920929e-07)
  575. o14.Name = "Revolver"
  576. o14.Parent = o1
  577. o15.Name = "body"
  578. o15.Parent = o14
  579. o15.BrickColor = BrickColor.new("Pastel yellow")
  580. o15.Position = Vector3.new(-17.8098717, 3.3815546, 7.53761673)
  581. o15.Rotation = Vector3.new(-83.0999985, 89.4400024, -96.7300034)
  582. o15.FormFactor = Enum.FormFactor.Custom
  583. o15.Size = Vector3.new(0.200000003, 1.79999995, 0.899999976)
  584. o15.CFrame = CFrame.new(-17.8098717, 3.3815546, 7.53761673, -0.00114236539, 0.00967594888, 0.999952555, -0.00286693405, -0.999949098, 0.00967264082, 0.999995232, -0.0028557484, 0.00117004756)
  585. o15.BottomSurface = Enum.SurfaceType.Smooth
  586. o15.TopSurface = Enum.SurfaceType.Smooth
  587. o15.Color = Color3.new(1, 1, 0.8)
  588. o15.Position = Vector3.new(-17.8098717, 3.3815546, 7.53761673)
  589. o15.Orientation = Vector3.new(-0.550000012, 89.9300003, -179.839996)
  590. o15.Color = Color3.new(1, 1, 0.8)
  591. o16.Parent = o15
  592. o16.MeshId = "http://www.roblox.com/asset/?id=79401392 "
  593. o16.Scale = Vector3.new(1.5, 1.5, 1.5)
  594. o16.TextureId = "http://www.roblox.com/asset/?id=79401500 "
  595. o16.MeshType = Enum.MeshType.FileMesh
  596. o16.Scale = Vector3.new(1.5, 1.5, 1.5)
  597. o17.Name = "qCFrameWeldThingy"
  598. o17.Parent = o15
  599. o17.C1 = CFrame.new(-1.09999228, -1.16298461, -0.0699977875, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  600. o17.Part0 = o2
  601. o17.Part1 = o15
  602. o18.Name = "qRelativeCFrameWeldValue"
  603. o18.Parent = o15
  604. o18.Value = CFrame.new(-1.09999228, -1.16298461, -0.0699977875, 1, 0, 0, 0, -1, 0, 0, 0, -1)
  605. o19.Name = "Tommy"
  606. o19.Parent = o1
  607. o20.Name = "Body"
  608. o20.Parent = o19
  609. o20.BrickColor = BrickColor.new("Pastel yellow")
  610. o20.Position = Vector3.new(-18.5381889, 4.39989519, 6.19997787)
  611. o20.Rotation = Vector3.new(90.1600037, 0.550000012, 0.0700000003)
  612. o20.FormFactor = Enum.FormFactor.Custom
  613. o20.Size = Vector3.new(0.300000012, 0.899999619, 4.79999924)
  614. o20.CFrame = CFrame.new(-18.5381889, 4.39989519, 6.19997787, 0.999952555, -0.00114236539, 0.00967594888, 0.00967264082, -0.00286693405, -0.999949098, 0.00117004756, 0.999995232, -0.0028557484)
  615. o20.BottomSurface = Enum.SurfaceType.Smooth
  616. o20.TopSurface = Enum.SurfaceType.Smooth
  617. o20.Color = Color3.new(1, 1, 0.8)
  618. o20.Position = Vector3.new(-18.5381889, 4.39989519, 6.19997787)
  619. o20.Orientation = Vector3.new(89.4199982, 106.440002, 106.510002)
  620. o20.Color = Color3.new(1, 1, 0.8)
  621. o21.Parent = o20
  622. o21.MeshId = "http://www.roblox.com/asset/?id=116679805"
  623. o21.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  624. o21.TextureId = "http://www.roblox.com/asset/?id=116679995"
  625. o21.MeshType = Enum.MeshType.FileMesh
  626. o21.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  627. o22.Name = "qCFrameWeldThingy"
  628. o22.Parent = o20
  629. o22.C1 = CFrame.new(0.649999619, 0.239727497, -0.141468644, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  630. o22.Part0 = o2
  631. o22.Part1 = o20
  632. o23.Name = "qRelativeCFrameWeldValue"
  633. o23.Parent = o20
  634. o23.Value = CFrame.new(0.649999619, 0.239727497, -0.141468644, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  635.  
  636. --equip Guns1
  637.  
  638. local runDummyScript = function(f,scri)
  639. local oldenv = getfenv(f)
  640. local newenv = setmetatable({}, {
  641. __index = function(_, k)
  642. if k:lower() == 'script' then
  643. return scri
  644. else
  645. return oldenv[k]
  646. end
  647. end
  648. })
  649. setfenv(f, newenv)
  650. ypcall(function() f() end)
  651. end
  652. o1 = Instance.new("Model")
  653. o2 = Instance.new("Model")
  654. o3 = Instance.new("Part")
  655. o4 = Instance.new("SpecialMesh")
  656. o5 = Instance.new("Part")
  657. o6 = Instance.new("Weld")
  658. o7 = Instance.new("CFrameValue")
  659. o8 = Instance.new("Model")
  660. o9 = Instance.new("Part")
  661. o10 = Instance.new("SpecialMesh")
  662. o11 = Instance.new("Weld")
  663. o12 = Instance.new("CFrameValue")
  664. o13 = Instance.new("Part")
  665. o14 = Instance.new("Weld")
  666. o15 = Instance.new("CFrameValue")
  667. o16 = Instance.new("Part")
  668. o17 = Instance.new("Weld")
  669. o18 = Instance.new("Weld")
  670. o19 = Instance.new("CFrameValue")
  671. o1.Name = "RAG"
  672. o1.Parent = char
  673. o2.Name = "ShotGun"
  674. o2.Parent = o1
  675. o3.Name = "Body"
  676. o3.Parent = o2
  677. o3.BrickColor = BrickColor.new("Pastel yellow")
  678. o3.Transparency = 1
  679. o3.Position = Vector3.new(-18.2866478, 4.49532318, 4.04898596)
  680. o3.Rotation = Vector3.new(-90, 0, -89.9899979)
  681. o3.Velocity = Vector3.new(0, -1187.00049, 0)
  682. o3.CanCollide = false
  683. o3.FormFactor = Enum.FormFactor.Custom
  684. o3.Size = Vector3.new(0.300000012, 0.899999917, 4.79999924)
  685. o3.CFrame = CFrame.new(-18.2866478, 4.49532318, 4.04898596, 9.15527344e-05, 1, 5.24472853e-06, 5.24520874e-06, -5.24520874e-06, 1, 1, -9.15527053e-05, -5.24568895e-06)
  686. o3.BottomSurface = Enum.SurfaceType.Smooth
  687. o3.TopSurface = Enum.SurfaceType.Smooth
  688. o3.Color = Color3.new(1, 1, 0.8)
  689. o3.Position = Vector3.new(-18.2866478, 4.49532318, 4.04898596)
  690. o3.Orientation = Vector3.new(-90, -89.9899979, 0)
  691. o3.Color = Color3.new(1, 1, 0.8)
  692. o4.Parent = o3
  693. o4.MeshId = "http://www.roblox.com/asset/?id=94219391"
  694. o4.Scale = Vector3.new(0.75, 0.75, 0.75)
  695. o4.TextureId = "http://www.roblox.com/asset/?id=94219470"
  696. o4.MeshType = Enum.MeshType.FileMesh
  697. o4.Scale = Vector3.new(0.75, 0.75, 0.75)
  698. o5.Name = "Shot"
  699. o5.Parent = o2
  700. o5.BrickColor = BrickColor.new("Pastel yellow")
  701. o5.Transparency = 1
  702. o5.Position = Vector3.new(-17.8251419, 2.05003786, 4.04753637)
  703. o5.Rotation = Vector3.new(180, 90, 0)
  704. o5.Velocity = Vector3.new(0, -1187.00049, 0)
  705. o5.CanCollide = false
  706. o5.FormFactor = Enum.FormFactor.Custom
  707. o5.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  708. o5.CFrame = CFrame.new(-17.8251419, 2.05003786, 4.04753637, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  709. o5.BottomSurface = Enum.SurfaceType.Smooth
  710. o5.TopSurface = Enum.SurfaceType.Smooth
  711. o5.Color = Color3.new(1, 1, 0.8)
  712. o5.Position = Vector3.new(-17.8251419, 2.05003786, 4.04753637)
  713. o5.Orientation = Vector3.new(0, 90.0100021, 180)
  714. o5.Color = Color3.new(1, 1, 0.8)
  715. o6.Name = "qCFrameWeldThingy"
  716. o6.Parent = o5
  717. o6.C1 = CFrame.new(0.00142002106, -2.44528294, -0.461519241, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  718. o6.Part0 = o3
  719. o6.Part1 = o5
  720. o7.Name = "qRelativeCFrameWeldValue"
  721. o7.Parent = o5
  722. o7.Value = CFrame.new(0.00142002106, -2.44528294, -0.461519241, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  723. o8.Name = "Revolver"
  724. o8.Parent = o1
  725. o9.Name = "body"
  726. o9.Parent = o8
  727. o9.BrickColor = BrickColor.new("Pastel yellow")
  728. o9.Transparency = 1
  729. o9.Position = Vector3.new(-18.0926838, 4.49774027, 4.02821636)
  730. o9.Rotation = Vector3.new(180, 90, 0)
  731. o9.Velocity = Vector3.new(0, -1187.00049, 0)
  732. o9.CanCollide = false
  733. o9.FormFactor = Enum.FormFactor.Custom
  734. o9.Size = Vector3.new(0.200000003, 1.79999995, 0.899999976)
  735. o9.CFrame = CFrame.new(-18.0926838, 4.49774027, 4.02821636, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  736. o9.BottomSurface = Enum.SurfaceType.Smooth
  737. o9.TopSurface = Enum.SurfaceType.Smooth
  738. o9.Color = Color3.new(1, 1, 0.8)
  739. o9.Position = Vector3.new(-18.0926838, 4.49774027, 4.02821636)
  740. o9.Orientation = Vector3.new(0, 90.0100021, 180)
  741. o9.Color = Color3.new(1, 1, 0.8)
  742. o10.Parent = o9
  743. o10.MeshId = "http://www.roblox.com/asset/?id=79401392 "
  744. o10.Scale = Vector3.new(1.5, 1.5, 1.5)
  745. o10.TextureId = "http://www.roblox.com/asset/?id=79401500 "
  746. o10.MeshType = Enum.MeshType.FileMesh
  747. o10.Scale = Vector3.new(1.5, 1.5, 1.5)
  748. o11.Name = "qCFrameWeldThingy"
  749. o11.Parent = o9
  750. o11.C1 = CFrame.new(0.0207519531, 0.00241804123, -0.193965912, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  751. o11.Part0 = o3
  752. o11.Part1 = o9
  753. o12.Name = "qRelativeCFrameWeldValue"
  754. o12.Parent = o9
  755. o12.Value = CFrame.new(0.0207519531, 0.00241804123, -0.193965912, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  756. o13.Name = "Shot"
  757. o13.Parent = o8
  758. o13.BrickColor = BrickColor.new("Pastel yellow")
  759. o13.Transparency = 1
  760. o13.Position = Vector3.new(-17.7116547, 3.57255101, 4.02867603)
  761. o13.Rotation = Vector3.new(180, 90, 0)
  762. o13.Velocity = Vector3.new(0, -1187.00049, 0)
  763. o13.CanCollide = false
  764. o13.FormFactor = Enum.FormFactor.Custom
  765. o13.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  766. o13.CFrame = CFrame.new(-17.7116547, 3.57255101, 4.02867603, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  767. o13.BottomSurface = Enum.SurfaceType.Smooth
  768. o13.TopSurface = Enum.SurfaceType.Smooth
  769. o13.Color = Color3.new(1, 1, 0.8)
  770. o13.Position = Vector3.new(-17.7116547, 3.57255101, 4.02867603)
  771. o13.Orientation = Vector3.new(0, 90.0100021, 180)
  772. o13.Color = Color3.new(1, 1, 0.8)
  773. o14.Name = "qCFrameWeldThingy"
  774. o14.Parent = o13
  775. o14.C1 = CFrame.new(0.0202622414, -0.92276907, -0.574998856, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  776. o14.Part0 = o3
  777. o14.Part1 = o13
  778. o15.Name = "qRelativeCFrameWeldValue"
  779. o15.Parent = o13
  780. o15.Value = CFrame.new(0.0202622414, -0.92276907, -0.574998856, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  781. o16.Name = "WeldP"
  782. o16.Parent = o1
  783. o16.BrickColor = BrickColor.new("Brick yellow")
  784. o16.Position = Vector3.new(-18.6692543, 6.08675575, 4.13988352)
  785. o16.Rotation = Vector3.new(0, -90, 0)
  786. o16.Velocity = Vector3.new(0, -1187.00049, 0)
  787. o16.CanCollide = false
  788. o16.FormFactor = Enum.FormFactor.Symmetric
  789. o16.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  790. o16.CFrame = CFrame.new(-18.6692543, 6.08675575, 4.13988352, 9.15527344e-05, 5.24472853e-06, -1, 5.24520874e-06, 1, 5.24520874e-06, 1, -5.24568895e-06, 9.15527053e-05)
  791. o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
  792. o16.Position = Vector3.new(-18.6692543, 6.08675575, 4.13988352)
  793. o16.Orientation = Vector3.new(0, -89.9899979, 0)
  794. o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
  795. o17.Name = "ArmWeld"
  796. o17.Parent = o16
  797. o17.Part0 = o16
  798. o17.Part1 = RA
  799. o18.Name = "qCFrameWeldThingy"
  800. o18.Parent = o16
  801. o18.C1 = CFrame.new(-0.0908710957, -1.59143031, -0.382623672, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  802. o18.Part0 = o3
  803. o18.Part1 = o16
  804. o19.Name = "qRelativeCFrameWeldValue"
  805. o19.Parent = o16
  806. o19.Value = CFrame.new(-0.0908710957, -1.59143031, -0.382623672, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  807.  
  808.  
  809. --equip guns2
  810.  
  811.  
  812. local runDummyScript = function(f,scri)
  813. local oldenv = getfenv(f)
  814. local newenv = setmetatable({}, {
  815. __index = function(_, k)
  816. if k:lower() == 'script' then
  817. return scri
  818. else
  819. return oldenv[k]
  820. end
  821. end
  822. })
  823. setfenv(f, newenv)
  824. ypcall(function() f() end)
  825. end
  826. o1 = Instance.new("Model")
  827. o2 = Instance.new("Model")
  828. o3 = Instance.new("Part")
  829. o4 = Instance.new("SpecialMesh")
  830. o5 = Instance.new("Part")
  831. o6 = Instance.new("Weld")
  832. o7 = Instance.new("CFrameValue")
  833. o8 = Instance.new("Model")
  834. o9 = Instance.new("Part")
  835. o10 = Instance.new("SpecialMesh")
  836. o11 = Instance.new("Weld")
  837. o12 = Instance.new("CFrameValue")
  838. o13 = Instance.new("Part")
  839. o14 = Instance.new("Weld")
  840. o15 = Instance.new("CFrameValue")
  841. o16 = Instance.new("Part")
  842. o17 = Instance.new("Weld")
  843. o18 = Instance.new("Weld")
  844. o19 = Instance.new("CFrameValue")
  845. o1.Name = "LAG"
  846. o1.Parent = char
  847. o2.Name = "Tommy"
  848. o2.Parent = o1
  849. o3.Name = "Body"
  850. o3.Parent = o2
  851. o3.BrickColor = BrickColor.new("Pastel yellow")
  852. o3.Transparency = 1
  853. o3.Position = Vector3.new(-17.0248508, 4.47074223, 3.95140791)
  854. o3.Rotation = Vector3.new(-90, 0, -89.9899979)
  855. o3.Velocity = Vector3.new(0, -1413.52173, 0)
  856. o3.CanCollide = false
  857. o3.FormFactor = Enum.FormFactor.Custom
  858. o3.Size = Vector3.new(0.300000012, 0.899999619, 4.79999924)
  859. o3.CFrame = CFrame.new(-17.0248508, 4.47074223, 3.95140791, 9.15527344e-05, 1, 5.24472853e-06, 5.24520874e-06, -5.24520874e-06, 1, 1, -9.15527053e-05, -5.24568895e-06)
  860. o3.BottomSurface = Enum.SurfaceType.Smooth
  861. o3.TopSurface = Enum.SurfaceType.Smooth
  862. o3.Color = Color3.new(1, 1, 0.8)
  863. o3.Position = Vector3.new(-17.0248508, 4.47074223, 3.95140791)
  864. o3.Orientation = Vector3.new(-90, -89.9899979, 0)
  865. o3.Color = Color3.new(1, 1, 0.8)
  866. o4.Parent = o3
  867. o4.MeshId = "http://www.roblox.com/asset/?id=116679805"
  868. o4.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  869. o4.TextureId = "http://www.roblox.com/asset/?id=116679995"
  870. o4.MeshType = Enum.MeshType.FileMesh
  871. o4.Scale = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  872. o5.Name = "Shot"
  873. o5.Parent = o2
  874. o5.BrickColor = BrickColor.new("Dark stone grey")
  875. o5.Transparency = 1
  876. o5.Position = Vector3.new(-16.962965, 2.17791533, 3.97139597)
  877. o5.Rotation = Vector3.new(180, 90, 0)
  878. o5.Velocity = Vector3.new(0, -1413.52173, 0)
  879. o5.CanCollide = false
  880. o5.FormFactor = Enum.FormFactor.Custom
  881. o5.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  882. o5.CFrame = CFrame.new(-16.962965, 2.17791533, 3.97139597, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  883. o5.BottomSurface = Enum.SurfaceType.Smooth
  884. o5.TopSurface = Enum.SurfaceType.Smooth
  885. o5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  886. o5.Position = Vector3.new(-16.962965, 2.17791533, 3.97139597)
  887. o5.Orientation = Vector3.new(0, 90.0100021, 180)
  888. o5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  889. o6.Name = "qCFrameWeldThingy"
  890. o6.Parent = o5
  891. o6.C1 = CFrame.new(-0.0199816227, -2.29282665, -0.0618953705, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  892. o6.Part0 = o3
  893. o6.Part1 = o5
  894. o7.Name = "qRelativeCFrameWeldValue"
  895. o7.Parent = o5
  896. o7.Value = CFrame.new(-0.0199816227, -2.29282665, -0.0618953705, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  897. o8.Name = "SMG"
  898. o8.Parent = o1
  899. o9.Name = "Body"
  900. o9.Parent = o8
  901. o9.BrickColor = BrickColor.new("Dark stone grey")
  902. o9.Transparency = 1
  903. o9.Position = Vector3.new(-17.5299664, 4.70727825, 3.97143435)
  904. o9.Rotation = Vector3.new(180, 90, 0)
  905. o9.Velocity = Vector3.new(0, -1413.52173, 0)
  906. o9.CanCollide = false
  907. o9.FormFactor = Enum.FormFactor.Custom
  908. o9.Size = Vector3.new(0.200000003, 1.70000005, 1.39999998)
  909. o9.CFrame = CFrame.new(-17.5299664, 4.70727825, 3.97143435, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  910. o9.BottomSurface = Enum.SurfaceType.Smooth
  911. o9.TopSurface = Enum.SurfaceType.Smooth
  912. o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
  913. o9.Position = Vector3.new(-17.5299664, 4.70727825, 3.97143435)
  914. o9.Orientation = Vector3.new(0, 90.0100021, 180)
  915. o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
  916. o10.Parent = o9
  917. o10.MeshId = "http://www.roblox.com/asset/?id=72012794"
  918. o10.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
  919. o10.TextureId = "http://www.roblox.com/asset/?id=72012761"
  920. o10.VertexColor = Vector3.new(2, 2, 2)
  921. o10.MeshType = Enum.MeshType.FileMesh
  922. o10.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024)
  923. o11.Name = "qCFrameWeldThingy"
  924. o11.Parent = o9
  925. o11.C1 = CFrame.new(-0.0199813843, 0.236533284, 0.505119324, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  926. o11.Part0 = o3
  927. o11.Part1 = o9
  928. o12.Name = "qRelativeCFrameWeldValue"
  929. o12.Parent = o9
  930. o12.Value = CFrame.new(-0.0199813843, 0.236533284, 0.505119324, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  931. o13.Name = "Shot"
  932. o13.Parent = o8
  933. o13.BrickColor = BrickColor.new("Dark stone grey")
  934. o13.Transparency = 1
  935. o13.Position = Vector3.new(-17.0345058, 4.10718775, 3.97139215)
  936. o13.Rotation = Vector3.new(180, 90, 0)
  937. o13.Velocity = Vector3.new(0, -1413.52173, 0)
  938. o13.CanCollide = false
  939. o13.FormFactor = Enum.FormFactor.Custom
  940. o13.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  941. o13.CFrame = CFrame.new(-17.0345058, 4.10718775, 3.97139215, 9.15527344e-05, -5.24472853e-06, 1, 5.24520874e-06, -1, -5.24520874e-06, 1, 5.24568895e-06, -9.15527053e-05)
  942. o13.BottomSurface = Enum.SurfaceType.Smooth
  943. o13.TopSurface = Enum.SurfaceType.Smooth
  944. o13.Color = Color3.new(0.388235, 0.372549, 0.384314)
  945. o13.Position = Vector3.new(-17.0345058, 4.10718775, 3.97139215)
  946. o13.Orientation = Vector3.new(0, 90.0100021, 180)
  947. o13.Color = Color3.new(0.388235, 0.372549, 0.384314)
  948. o14.Name = "qCFrameWeldThingy"
  949. o14.Parent = o13
  950. o14.C1 = CFrame.new(-0.0199813843, -0.363554478, 0.00965499878, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  951. o14.Part0 = o3
  952. o14.Part1 = o13
  953. o15.Name = "qRelativeCFrameWeldValue"
  954. o15.Parent = o13
  955. o15.Value = CFrame.new(-0.0199813843, -0.363554478, 0.00965499878, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  956. o16.Name = "WeldP"
  957. o16.Parent = o1
  958. o16.BrickColor = BrickColor.new("Brick yellow")
  959. o16.Position = Vector3.new(-17.7492771, 5.80000973, 4.06145048)
  960. o16.Rotation = Vector3.new(0, -90, 0)
  961. o16.Velocity = Vector3.new(0, -1413.52173, 0)
  962. o16.CanCollide = false
  963. o16.FormFactor = Enum.FormFactor.Symmetric
  964. o16.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  965. o16.CFrame = CFrame.new(-17.7492771, 5.80000973, 4.06145048, 9.15527344e-05, 5.24472853e-06, -1, 5.24520874e-06, 1, 5.24520874e-06, 1, -5.24568895e-06, 9.15527053e-05)
  966. o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
  967. o16.Position = Vector3.new(-17.7492771, 5.80000973, 4.06145048)
  968. o16.Orientation = Vector3.new(0, -89.9899979, 0)
  969. o16.Color = Color3.new(0.843137, 0.772549, 0.603922)
  970. o17.Name = "ArmWeld2"
  971. o17.Parent = o16
  972. o17.Part0 = o16
  973. o17.Part1 = LA
  974. o18.Name = "qCFrameWeldThingy"
  975. o18.Parent = o16
  976. o18.C1 = CFrame.new(-0.109983206, -1.32926309, -0.724443436, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  977. o18.Part0 = o3
  978. o18.Part1 = o16
  979. o19.Name = "qRelativeCFrameWeldValue"
  980. o19.Parent = o16
  981. o19.Value = CFrame.new(-0.109983206, -1.32926309, -0.724443436, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  982.  
  983.  
  984. --Keys
  985.  
  986.  
  987.  
  988. Mouse.KeyDown:Connect(function(Key)
  989. if Key == "e" then
  990. if equipped == false then
  991. Rgun = 1
  992. equipped = true
  993. char.Guns.Revolver.body.Transparency = 1
  994. char.RAG.Revolver.body.Transparency = 0
  995. elseif equipped == true then
  996. Rgun = 0
  997. equipped = false
  998. char.Guns.Revolver.body.Transparency = 0
  999. char.RAG.Revolver.body.Transparency =1
  1000. end
  1001. end
  1002. end)
  1003.  
  1004. Mouse.KeyDown:Connect(function(Key)
  1005. if Key == "r" then
  1006. if equipped == false then
  1007. Rgun = 2
  1008. equipped = true
  1009. char.Guns.ShotGun.Body.Transparency = 1
  1010. char.RAG.ShotGun.Body.Transparency = 0
  1011. elseif equipped == true then
  1012. equipped = false
  1013. Rgun = 0
  1014. char.Guns.ShotGun.Body.Transparency = 0
  1015. char.RAG.ShotGun.Body.Transparency =1
  1016. end
  1017. end
  1018. end)
  1019.  
  1020. Mouse.KeyDown:Connect(function(Key)
  1021. if Key == "t" then
  1022. if equipped == false then
  1023. Lgun = 1
  1024. equipped = true
  1025. char.Guns.SMG.Body.Transparency = 1
  1026. char.LAG.SMG.Body.Transparency = 0
  1027. elseif equipped == true then
  1028. Lgun = 0
  1029. equipped = false
  1030. char.Guns.SMG.Body.Transparency = 0
  1031. char.LAG.SMG.Body.Transparency =1
  1032. end
  1033. end
  1034. end)
  1035.  
  1036. Mouse.KeyDown:Connect(function(Key)
  1037. if Key == "y" then
  1038. if equipped == false then
  1039. Lgun = 2
  1040. equipped = true
  1041. char.Guns.Tommy.Body.Transparency = 1
  1042. char.LAG.Tommy.Body.Transparency = 0
  1043. elseif equipped == true then
  1044. Lgun = 0
  1045. equipped = false
  1046. char.Guns.Tommy.Body.Transparency = 0
  1047. char.LAG.Tommy.Body.Transparency =1
  1048. end
  1049. end
  1050. end)
  1051.  
  1052. Mouse.Button1Down:Connect(function()
  1053. if equipped == true then
  1054. if Rgun == 1 then
  1055. if fired == false then
  1056. print("faired gun 1")
  1057. fired = true
  1058. Rooted = false
  1059.  
  1060. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1061. wait(0.01)
  1062. turnto(Mouse.Hit.p)
  1063. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1064. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1065. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1066. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1067. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1068. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1069. end
  1070. wait(0.1)
  1071.  
  1072. local runDummyScript = function(f,scri)
  1073. local oldenv = getfenv(f)
  1074. local newenv = setmetatable({}, {
  1075. __index = function(_, k)
  1076. if k:lower() == 'script' then
  1077. return scri
  1078. else
  1079. return oldenv[k]
  1080. end
  1081. end
  1082. })
  1083. setfenv(f, newenv)
  1084. ypcall(function() f() end)
  1085. end
  1086. o1 = Instance.new("Part")
  1087. o2 = Instance.new("SpecialMesh")
  1088. o3 = Instance.new("Weld")
  1089. o1.Name = "BlastRing"
  1090. o1.Parent = char.RAG.Revolver
  1091. o1.BrickColor = BrickColor.new("Bright yellow")
  1092. o1.Transparency = 0.20000000298023
  1093. o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
  1094. o1.Anchored = false
  1095. o1.CanCollide = false
  1096. o1.Size = Vector3.new(0.1,0.1,0.1)
  1097. o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
  1098. o1.BottomSurface = Enum.SurfaceType.Smooth
  1099. o1.TopSurface = Enum.SurfaceType.Smooth
  1100. o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1101. o2.Name = "BlastMesh"
  1102. o2.Parent = o1
  1103. o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1104. o2.MeshType = Enum.MeshType.FileMesh
  1105. o2.Scale = Vector3.new(0.2,0.2,0.2)
  1106. o3.Parent = o1
  1107. o3.Part0 = o1
  1108. o3.Part1 = char.RAG.Revolver.Shot
  1109.  
  1110. CreateSound(2314169572,char.RAG.Revolver.Shot,3,false)
  1111. Fire("gun = 1",100)
  1112. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1113. wait(0.01)
  1114. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1115. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1116. RS.C0 = Clerp(RS.C0, CF(1.5, 0.4, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1117. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1118. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1119. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1120. end
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126. fired = false
  1127. o1:Destroy()
  1128.  
  1129.  
  1130. end
  1131. end
  1132. end
  1133. end)
  1134.  
  1135. Mouse.Button1Down:Connect(function()
  1136. if equipped == true then
  1137. if Rgun == 2 then
  1138. if fired == false then
  1139. print("faired gun 2")
  1140. fired = true
  1141. Rooted = false
  1142.  
  1143. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1144. wait(0.01)
  1145. turnto(Mouse.Hit.p)
  1146. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1147. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1148. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1149. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1150. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1151. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1152. end
  1153. wait(0.1)
  1154.  
  1155. local runDummyScript = function(f,scri)
  1156. local oldenv = getfenv(f)
  1157. local newenv = setmetatable({}, {
  1158. __index = function(_, k)
  1159. if k:lower() == 'script' then
  1160. return scri
  1161. else
  1162. return oldenv[k]
  1163. end
  1164. end
  1165. })
  1166. setfenv(f, newenv)
  1167. ypcall(function() f() end)
  1168. end
  1169. o1 = Instance.new("Part")
  1170. o2 = Instance.new("SpecialMesh")
  1171. o3 = Instance.new("Weld")
  1172. o1.Name = "BlastRing"
  1173. o1.Parent = char.RAG.ShotGun
  1174. o1.BrickColor = BrickColor.new("Bright yellow")
  1175. o1.Transparency = 0.20000000298023
  1176. o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
  1177. o1.Anchored = false
  1178. o1.CanCollide = false
  1179. o1.Size = Vector3.new(0.1,0.1,0.1)
  1180. o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
  1181. o1.BottomSurface = Enum.SurfaceType.Smooth
  1182. o1.TopSurface = Enum.SurfaceType.Smooth
  1183. o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1184. o2.Name = "BlastMesh"
  1185. o2.Parent = o1
  1186. o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1187. o2.MeshType = Enum.MeshType.FileMesh
  1188. o2.Scale = Vector3.new(0.2,0.2,0.2)
  1189. o3.Parent = o1
  1190. o3.Part0 = o1
  1191. o3.Part1 = char.RAG.ShotGun.Shot
  1192.  
  1193. CreateSound(3502970196,char.RAG.ShotGun.Shot,3,false)
  1194. Fire("gun = 2",100)
  1195. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1196. wait(0.01)
  1197. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1198. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1199. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1200. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1201. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1202. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1203. end
  1204.  
  1205.  
  1206.  
  1207. fired = false
  1208. o1:Destroy()
  1209.  
  1210.  
  1211.  
  1212.  
  1213. end
  1214. end
  1215. end
  1216. end)
  1217.  
  1218.  
  1219.  
  1220. Mouse.Button1Down:Connect(function()
  1221. if equipped == true then
  1222. if Lgun == 1 then
  1223. if fired == false then
  1224. print("faired gun 3")
  1225. fired = true
  1226. Rooted = false
  1227.  
  1228. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1229. wait(0.01)
  1230. turnto(Mouse.Hit.p)
  1231. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1232. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
  1233. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1234. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, -0.01) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1235. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1236. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1237. end
  1238. wait(0.1)
  1239.  
  1240. local runDummyScript = function(f,scri)
  1241. local oldenv = getfenv(f)
  1242. local newenv = setmetatable({}, {
  1243. __index = function(_, k)
  1244. if k:lower() == 'script' then
  1245. return scri
  1246. else
  1247. return oldenv[k]
  1248. end
  1249. end
  1250. })
  1251. setfenv(f, newenv)
  1252. ypcall(function() f() end)
  1253. end
  1254. o1 = Instance.new("Part")
  1255. o2 = Instance.new("SpecialMesh")
  1256. o3 = Instance.new("Weld")
  1257. o1.Name = "BlastRing"
  1258. o1.Parent = char.LAG.SMG
  1259. o1.BrickColor = BrickColor.new("Bright yellow")
  1260. o1.Transparency = 0.20000000298023
  1261. o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
  1262. o1.Anchored = false
  1263. o1.CanCollide = false
  1264. o1.Size = Vector3.new(0.1,0.1,0.1)
  1265. o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
  1266. o1.BottomSurface = Enum.SurfaceType.Smooth
  1267. o1.TopSurface = Enum.SurfaceType.Smooth
  1268. o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1269. o2.Name = "BlastMesh"
  1270. o2.Parent = o1
  1271. o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1272. o2.MeshType = Enum.MeshType.FileMesh
  1273. o2.Scale = Vector3.new(0.2,0.2,0.2)
  1274. o3.Parent = o1
  1275. o3.Part0 = o1
  1276. o3.Part1 = char.LAG.SMG.Shot
  1277.  
  1278. CreateSound(1153275576,char.LAG.SMG.Shot,3,false)
  1279. Fire("gun = 3",100)
  1280.  
  1281. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1282. wait(0.01)
  1283. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1284. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
  1285. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1286. LS.C0 = Clerp(LS.C0, CF(-1.3, 0.5, -0.01) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1287. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1288. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1289. end
  1290.  
  1291.  
  1292.  
  1293. fired = false
  1294. o1:Destroy()
  1295.  
  1296.  
  1297. end
  1298. end
  1299. end
  1300. end)
  1301.  
  1302. Mouse.Button1Down:Connect(function()
  1303. if equipped == true then
  1304. if Lgun == 2 then
  1305. if fired == false then
  1306. print("faired gun 4")
  1307. fired = true
  1308. Rooted = false
  1309.  
  1310. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1311. wait(0.01)
  1312. turnto(Mouse.Hit.p)
  1313. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1314. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
  1315. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1316. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, -0.01) * ANGLES(RAD(90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1317. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1318. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1319. end
  1320. wait(0.1)
  1321.  
  1322. local runDummyScript = function(f,scri)
  1323. local oldenv = getfenv(f)
  1324. local newenv = setmetatable({}, {
  1325. __index = function(_, k)
  1326. if k:lower() == 'script' then
  1327. return scri
  1328. else
  1329. return oldenv[k]
  1330. end
  1331. end
  1332. })
  1333. setfenv(f, newenv)
  1334. ypcall(function() f() end)
  1335. end
  1336. o1 = Instance.new("Part")
  1337. o2 = Instance.new("SpecialMesh")
  1338. o3 = Instance.new("Weld")
  1339. o1.Name = "BlastRing"
  1340. o1.Parent = char.LAG.Tommy
  1341. o1.BrickColor = BrickColor.new("Bright yellow")
  1342. o1.Transparency = 0.20000000298023
  1343. o1.Position = Vector3.new(-14.7348604, 0.599999011, -2.18523002)
  1344. o1.Anchored = false
  1345. o1.CanCollide = false
  1346. o1.Size = Vector3.new(0.1,0.1,0.1)
  1347. o1.CFrame = CFrame.new(-14.7348604, 0.599999011, -2.18523002, 1, 0, -1.93715096e-07, 0, 1, 0, 1.93715096e-07, 0, 1)
  1348. o1.BottomSurface = Enum.SurfaceType.Smooth
  1349. o1.TopSurface = Enum.SurfaceType.Smooth
  1350. o1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  1351. o2.Name = "BlastMesh"
  1352. o2.Parent = o1
  1353. o2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1354. o2.MeshType = Enum.MeshType.FileMesh
  1355. o2.Scale = Vector3.new(0.2,0.2,0.2)
  1356. o3.Parent = o1
  1357. o3.Part0 = o1
  1358. o3.Part1 = char.LAG.Tommy.Shot
  1359.  
  1360. CreateSound(1153275576,char.LAG.Tommy.Shot,3,false)
  1361. Fire("gun = 4",100)
  1362.  
  1363. for i=0, 0.2, 0.05 / Fire_Anim_Speed do
  1364. wait(0.01)
  1365. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1366. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.25 / Animation_Speed)
  1367. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1368. LS.C0 = Clerp(LS.C0, CF(-1.3, 0.5, -0.01) * ANGLES(RAD(90), RAD(-10), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1369. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1370. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1371. end
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377. fired = false
  1378. o1:Destroy()
  1379.  
  1380.  
  1381.  
  1382. end
  1383. end
  1384. end
  1385. end)
  1386.  
  1387. --animations
  1388.  
  1389. while true do
  1390. if fired == true then
  1391. wait(0.5)
  1392. print("Animations canceled")
  1393. elseif fired == false then
  1394. wait(0.01)
  1395. SINE = SINE + CHANGE
  1396. ANIMATE:Destroy()
  1397. local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
  1398. IDLEANIMATION:Play()
  1399. local TORSOVELOCITY = (RP.Velocity * VT(1, 0, 1)).magnitude
  1400. local TORSOVERTICALVELOCITY = RP.Velocity.y
  1401. local LV = tors.CFrame:pointToObjectSpace(tors.Velocity - tors.Position)
  1402. local HITFLOOR = Raycast(RP.Position, (CF(RP.Position, RP.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, char)
  1403. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  1404. if ATTACK == false and VALUE2 == false then
  1405. end
  1406. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1407. RJ.C1 = Clerp(RJ.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RP.RotVelocity.Y / 75, RAD(0)), 2 * (hum.WalkSpeed / 16) / Animation_Speed)
  1408. NK.C1 = Clerp(NK.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - hed.RotVelocity.Y / 30), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
  1409. RH.C1 = Clerp(RH.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RL.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
  1410. LH.C1 = Clerp(LH.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LL.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (hum.WalkSpeed / 16) / Animation_Speed)
  1411. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1412. RJ.C1 = Clerp(RJ.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1413. NK.C1 = Clerp(NK.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1414. RH.C1 = Clerp(RH.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1415. LH.C1 = Clerp(LH.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1416. end
  1417. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1418. ANIM = "Jump"
  1419. if ATTACK == false then
  1420. RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1421. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1422. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1423. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1424. RH.C0 = Clerp(RH.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1425. LH.C0 = Clerp(LH.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1426. end
  1427. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1428. ANIM = "Fall"
  1429. if ATTACK == false then
  1430. RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1431. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1432. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1433. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1434. RH.C0 = Clerp(RH.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1435. LH.C0 = Clerp(LH.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1436. end
  1437. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1438. ANIM = "Idle"
  1439. if ATTACK == false then
  1440. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1441. if MRANDOM(1,7) == 1 then
  1442. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1443. end
  1444. RJ.C0 = Clerp(RJ.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1445. RS.C0 = Clerp(RS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1446. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1447. RH.C0 = Clerp(RH.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1448. LH.C0 = Clerp(LH.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1449. end
  1450. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1451. ANIM = "Walk"
  1452. if ATTACK == false then
  1453. RJ.C0 = Clerp(RJ.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1454. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1455. if MRANDOM(1,7) == 1 then
  1456. NK.C0 = Clerp(NK.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1457. end
  1458. RS.C0 = Clerp(RS.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1459. LS.C0 = Clerp(LS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1460. RH.C0 = Clerp(RH.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1461. LH.C0 = Clerp(LH.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1462. end
  1463. end
  1464. end
  1465. end
  1466.  
  1467.  
  1468. if Rooted == false then
  1469. Disable_Jump = false
  1470. hum.WalkSpeed = Speed
  1471. elseif Rooted == true then
  1472. Disable_Jump = true
  1473. hum.WalkSpeed = 0
  1474. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement