Advertisement
Disseya

Mcree

Nov 3rd, 2019
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.74 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. cors = {}
  153. mas = Instance.new("Model",game:GetService("Lighting"))
  154. mas.Name = "CompiledModel"
  155. o1 = Instance.new("Model")
  156. o2 = Instance.new("Part")
  157. o3 = Instance.new("CylinderMesh")
  158. o4 = Instance.new("Part")
  159. o5 = Instance.new("CylinderMesh")
  160. o6 = Instance.new("Part")
  161. o7 = Instance.new("CylinderMesh")
  162. o8 = Instance.new("Part")
  163. o9 = Instance.new("CylinderMesh")
  164. o10 = Instance.new("Part")
  165. o11 = Instance.new("CylinderMesh")
  166. o12 = Instance.new("Part")
  167. o13 = Instance.new("CylinderMesh")
  168. o14 = Instance.new("Part")
  169. o15 = Instance.new("CylinderMesh")
  170. o16 = Instance.new("Part")
  171. o17 = Instance.new("SpecialMesh")
  172. o18 = Instance.new("Part")
  173. o19 = Instance.new("CylinderMesh")
  174. o20 = Instance.new("Part")
  175. o21 = Instance.new("CylinderMesh")
  176. o22 = Instance.new("Part")
  177. o23 = Instance.new("BlockMesh")
  178. o24 = Instance.new("Part")
  179. o25 = Instance.new("Part")
  180. o26 = Instance.new("BlockMesh")
  181. o27 = Instance.new("Part")
  182. o28 = Instance.new("BlockMesh")
  183. o29 = Instance.new("Part")
  184. o30 = Instance.new("BlockMesh")
  185. o31 = Instance.new("Part")
  186. o32 = Instance.new("SpecialMesh")
  187. o33 = Instance.new("Part")
  188. o34 = Instance.new("SpecialMesh")
  189. o35 = Instance.new("Part")
  190. o36 = Instance.new("Part")
  191. o37 = Instance.new("BlockMesh")
  192. o38 = Instance.new("Part")
  193. o39 = Instance.new("CylinderMesh")
  194. o40 = Instance.new("Part")
  195. o41 = Instance.new("Part")
  196. o42 = Instance.new("SpecialMesh")
  197. o43 = Instance.new("Part")
  198. o44 = Instance.new("Part")
  199. o45 = Instance.new("BlockMesh")
  200. o46 = Instance.new("Part")
  201. o47 = Instance.new("CylinderMesh")
  202. o48 = Instance.new("Part")
  203. o49 = Instance.new("BlockMesh")
  204. o50 = Instance.new("Part")
  205. o51 = Instance.new("BlockMesh")
  206. o52 = Instance.new("Part")
  207. o53 = Instance.new("Part")
  208. o54 = Instance.new("CylinderMesh")
  209. o55 = Instance.new("Part")
  210. o56 = Instance.new("Part")
  211. o57 = Instance.new("SpecialMesh")
  212. o58 = Instance.new("Part")
  213. o59 = Instance.new("BlockMesh")
  214. o60 = Instance.new("Part")
  215. o61 = Instance.new("SpecialMesh")
  216. o62 = Instance.new("Part")
  217. o63 = Instance.new("SpecialMesh")
  218. o64 = Instance.new("Part")
  219. o65 = Instance.new("BlockMesh")
  220. o66 = Instance.new("Part")
  221. o67 = Instance.new("CylinderMesh")
  222. o68 = Instance.new("Part")
  223. o69 = Instance.new("CylinderMesh")
  224. o70 = Instance.new("Part")
  225. o71 = Instance.new("BlockMesh")
  226. o72 = Instance.new("Part")
  227. o73 = Instance.new("BlockMesh")
  228. o74 = Instance.new("Part")
  229. o75 = Instance.new("BlockMesh")
  230. o76 = Instance.new("Part")
  231. o77 = Instance.new("Part")
  232. o78 = Instance.new("BlockMesh")
  233. o79 = Instance.new("Part")
  234. o80 = Instance.new("SpecialMesh")
  235. o81 = Instance.new("Part")
  236. o82 = Instance.new("SpecialMesh")
  237. o83 = Instance.new("Part")
  238. o84 = Instance.new("SpecialMesh")
  239. o85 = Instance.new("Part")
  240. o86 = Instance.new("SpecialMesh")
  241. o87 = Instance.new("Part")
  242. o88 = Instance.new("CylinderMesh")
  243. o89 = Instance.new("Part")
  244. o90 = Instance.new("BlockMesh")
  245. o1.Name = "Revolver"
  246. o1.Parent = mas
  247. o2.Name = "A6"
  248. o2.Parent = o1
  249. o2.Material = Enum.Material.Neon
  250. o2.BrickColor = BrickColor.new("Toothpaste")
  251. o2.Position = Vector3.new(51.2299995, 4, 5.23000002)
  252. o2.Rotation = Vector3.new(-0, 0, 90)
  253. o2.Anchored = true
  254. o2.CanCollide = false
  255. o2.Shape = Enum.PartType.Cylinder
  256. o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  257. o2.CFrame = CFrame.new(51.2299995, 4, 5.23000002, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  258. o2.BottomSurface = Enum.SurfaceType.Smooth
  259. o2.TopSurface = Enum.SurfaceType.Smooth
  260. o2.Color = Color3.new(0, 1, 1)
  261. o2.Position = Vector3.new(51.2299995, 4, 5.23000002)
  262. o3.Parent = o2
  263. o3.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  264. o4.Name = "A3"
  265. o4.Parent = o1
  266. o4.Material = Enum.Material.Neon
  267. o4.BrickColor = BrickColor.new("Toothpaste")
  268. o4.Position = Vector3.new(51.2299995, 3.9000001, 5.41499996)
  269. o4.Rotation = Vector3.new(-0, 0, 90)
  270. o4.Anchored = true
  271. o4.CanCollide = false
  272. o4.Shape = Enum.PartType.Cylinder
  273. o4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  274. o4.CFrame = CFrame.new(51.2299995, 3.9000001, 5.41499996, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  275. o4.BottomSurface = Enum.SurfaceType.Smooth
  276. o4.TopSurface = Enum.SurfaceType.Smooth
  277. o4.Color = Color3.new(0, 1, 1)
  278. o4.Position = Vector3.new(51.2299995, 3.9000001, 5.41499996)
  279. o5.Parent = o4
  280. o5.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  281. o6.Name = "A2"
  282. o6.Parent = o1
  283. o6.Material = Enum.Material.Neon
  284. o6.BrickColor = BrickColor.new("Toothpaste")
  285. o6.Position = Vector3.new(51.2299995, 4, 5.41499996)
  286. o6.Rotation = Vector3.new(-0, 0, 90)
  287. o6.Anchored = true
  288. o6.CanCollide = false
  289. o6.Shape = Enum.PartType.Cylinder
  290. o6.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  291. o6.CFrame = CFrame.new(51.2299995, 4, 5.41499996, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  292. o6.BottomSurface = Enum.SurfaceType.Smooth
  293. o6.TopSurface = Enum.SurfaceType.Smooth
  294. o6.Color = Color3.new(0, 1, 1)
  295. o6.Position = Vector3.new(51.2299995, 4, 5.41499996)
  296. o7.Parent = o6
  297. o7.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  298. o8.Name = "A5"
  299. o8.Parent = o1
  300. o8.Material = Enum.Material.Neon
  301. o8.BrickColor = BrickColor.new("Toothpaste")
  302. o8.Position = Vector3.new(51.2299995, 3.9000001, 5.23000002)
  303. o8.Rotation = Vector3.new(-0, 0, 90)
  304. o8.Anchored = true
  305. o8.CanCollide = false
  306. o8.Shape = Enum.PartType.Cylinder
  307. o8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  308. o8.CFrame = CFrame.new(51.2299995, 3.9000001, 5.23000002, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  309. o8.BottomSurface = Enum.SurfaceType.Smooth
  310. o8.TopSurface = Enum.SurfaceType.Smooth
  311. o8.Color = Color3.new(0, 1, 1)
  312. o8.Position = Vector3.new(51.2299995, 3.9000001, 5.23000002)
  313. o9.Parent = o8
  314. o9.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  315. o10.Name = "A4"
  316. o10.Parent = o1
  317. o10.Material = Enum.Material.Neon
  318. o10.BrickColor = BrickColor.new("Toothpaste")
  319. o10.Position = Vector3.new(51.2319984, 3.8599999, 5.32000017)
  320. o10.Rotation = Vector3.new(-0, 0, 90)
  321. o10.Anchored = true
  322. o10.CanCollide = false
  323. o10.Shape = Enum.PartType.Cylinder
  324. o10.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  325. o10.CFrame = CFrame.new(51.2319984, 3.8599999, 5.32000017, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  326. o10.BottomSurface = Enum.SurfaceType.Smooth
  327. o10.TopSurface = Enum.SurfaceType.Smooth
  328. o10.Color = Color3.new(0, 1, 1)
  329. o10.Position = Vector3.new(51.2319984, 3.8599999, 5.32000017)
  330. o11.Parent = o10
  331. o11.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  332. o12.Name = "Barrel"
  333. o12.Parent = o1
  334. o12.Material = Enum.Material.SmoothPlastic
  335. o12.BrickColor = BrickColor.new("Mid gray")
  336. o12.Position = Vector3.new(51.981369, 4.00200367, 5.31954384)
  337. o12.Rotation = Vector3.new(-0, 0, 90)
  338. o12.Anchored = true
  339. o12.CanCollide = false
  340. o12.Shape = Enum.PartType.Cylinder
  341. o12.Size = Vector3.new(0.200000003, 1, 0.200000003)
  342. o12.CFrame = CFrame.new(51.981369, 4.00200367, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  343. o12.BottomSurface = Enum.SurfaceType.Smooth
  344. o12.TopSurface = Enum.SurfaceType.Smooth
  345. o12.Color = Color3.new(0.803922, 0.803922, 0.803922)
  346. o12.Position = Vector3.new(51.981369, 4.00200367, 5.31954384)
  347. o13.Parent = o12
  348. o13.Scale = Vector3.new(0.899999976, 1, 0.899999976)
  349. o14.Name = "BarrelEnd"
  350. o14.Parent = o1
  351. o14.Material = Enum.Material.SmoothPlastic
  352. o14.BrickColor = BrickColor.new("Really black")
  353. o14.Position = Vector3.new(52.3849983, 4, 5.31954384)
  354. o14.Rotation = Vector3.new(-0, 0, 90)
  355. o14.Anchored = true
  356. o14.CanCollide = false
  357. o14.Shape = Enum.PartType.Cylinder
  358. o14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  359. o14.CFrame = CFrame.new(52.3849983, 4, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  360. o14.BottomSurface = Enum.SurfaceType.Smooth
  361. o14.TopSurface = Enum.SurfaceType.Smooth
  362. o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  363. o14.Position = Vector3.new(52.3849983, 4, 5.31954384)
  364. o15.Parent = o14
  365. o15.Scale = Vector3.new(0.699999988, 1, 0.699999988)
  366. o16.Name = "T2"
  367. o16.Parent = o1
  368. o16.Material = Enum.Material.SmoothPlastic
  369. o16.BrickColor = BrickColor.new("Dark stone grey")
  370. o16.Position = Vector3.new(50.9799995, 3.38000011, 5.31954384)
  371. o16.Rotation = Vector3.new(-95.8101654, 58.8695641, -85.0219879)
  372. o16.Anchored = true
  373. o16.CanCollide = false
  374. o16.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003)
  375. o16.CFrame = CFrame.new(50.9799995, 3.38000011, 5.31954384, 0.0448608175, 0.515038073, 0.855992556, 0.0269551426, -0.857167304, 0.514332235, 0.99862957, 3.7252903e-008, -0.0523361489)
  376. o16.BottomSurface = Enum.SurfaceType.Smooth
  377. o16.TopSurface = Enum.SurfaceType.Smooth
  378. o16.Color = Color3.new(0.388235, 0.372549, 0.384314)
  379. o16.Position = Vector3.new(50.9799995, 3.38000011, 5.31954384)
  380. o17.Parent = o16
  381. o17.Scale = Vector3.new(0.5, 0.5, 0.519999981)
  382. o17.MeshType = Enum.MeshType.Wedge
  383. o18.Name = "Chamber"
  384. o18.Parent = o1
  385. o18.Material = Enum.Material.SmoothPlastic
  386. o18.Position = Vector3.new(51.2313728, 3.95000005, 5.31954384)
  387. o18.Rotation = Vector3.new(-0, 0, 90)
  388. o18.Anchored = true
  389. o18.CanCollide = false
  390. o18.Shape = Enum.PartType.Cylinder
  391. o18.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  392. o18.CFrame = CFrame.new(51.2313728, 3.95000005, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  393. o18.BottomSurface = Enum.SurfaceType.Smooth
  394. o18.TopSurface = Enum.SurfaceType.Smooth
  395. o18.Position = Vector3.new(51.2313728, 3.95000005, 5.31954384)
  396. o19.Parent = o18
  397. o19.Scale = Vector3.new(1.5, 1.5, 1.5)
  398. o20.Name = "H1"
  399. o20.Parent = o1
  400. o20.Material = Enum.Material.SmoothPlastic
  401. o20.BrickColor = BrickColor.new("Dark stone grey")
  402. o20.Position = Vector3.new(50.8233681, 3.94829392, 5.31954384)
  403. o20.Rotation = Vector3.new(90, 90, 0)
  404. o20.Anchored = true
  405. o20.CanCollide = false
  406. o20.Shape = Enum.PartType.Cylinder
  407. o20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  408. o20.CFrame = CFrame.new(50.8233681, 3.94829392, 5.31954384, -4.37113883e-008, 0, 1, 1, -4.37113883e-008, 4.37113883e-008, 4.37113883e-008, 1, 1.91068547e-015)
  409. o20.BottomSurface = Enum.SurfaceType.Smooth
  410. o20.TopSurface = Enum.SurfaceType.Smooth
  411. o20.Color = Color3.new(0.388235, 0.372549, 0.384314)
  412. o20.Position = Vector3.new(50.8233681, 3.94829392, 5.31954384)
  413. o21.Parent = o20
  414. o22.Name = "H2"
  415. o22.Parent = o1
  416. o22.Material = Enum.Material.SmoothPlastic
  417. o22.BrickColor = BrickColor.new("Dark stone grey")
  418. o22.Position = Vector3.new(50.7559967, 4.01956081, 5.31500006)
  419. o22.Rotation = Vector3.new(-0, 0, 44)
  420. o22.Anchored = true
  421. o22.CanCollide = false
  422. o22.Size = Vector3.new(0.200000003, 0.239000008, 0.200000003)
  423. o22.CFrame = CFrame.new(50.7559967, 4.01956081, 5.31500006, 0.719339788, -0.694658399, 0, 0.694658399, 0.719339788, 0, 0, 0, 1)
  424. o22.BottomSurface = Enum.SurfaceType.Smooth
  425. o22.TopSurface = Enum.SurfaceType.Smooth
  426. o22.Color = Color3.new(0.388235, 0.372549, 0.384314)
  427. o22.Position = Vector3.new(50.7559967, 4.01956081, 5.31500006)
  428. o23.Parent = o22
  429. o23.Scale = Vector3.new(0.5, 0.899999976, 0.5)
  430. o24.Name = "Handle"
  431. o24.Parent = o1
  432. o24.Material = Enum.Material.SmoothPlastic
  433. o24.BrickColor = BrickColor.new("Dark stone grey")
  434. o24.Position = Vector3.new(50.4970093, 3.37834263, 5.32154369)
  435. o24.Rotation = Vector3.new(-0, 0, 45)
  436. o24.Anchored = true
  437. o24.CanCollide = false
  438. o24.Size = Vector3.new(0.730000019, 0.300000072, 0.300000012)
  439. o24.CFrame = CFrame.new(50.4970093, 3.37834263, 5.32154369, 0.707106769, -0.707106769, 0, 0.707106769, 0.707106769, 0, 0, 0, 1)
  440. o24.BottomSurface = Enum.SurfaceType.Smooth
  441. o24.TopSurface = Enum.SurfaceType.Smooth
  442. o24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  443. o24.Position = Vector3.new(50.4970093, 3.37834263, 5.32154369)
  444. o25.Parent = o1
  445. o25.Material = Enum.Material.SmoothPlastic
  446. o25.BrickColor = BrickColor.new("Mid gray")
  447. o25.Position = Vector3.new(51.2200012, 3.46000004, 5.31954384)
  448. o25.Rotation = Vector3.new(-0, 0, 150.000015)
  449. o25.Anchored = true
  450. o25.CanCollide = false
  451. o25.Size = Vector3.new(0.200000003, 0.321999997, 0.200000003)
  452. o25.CFrame = CFrame.new(51.2200012, 3.46000004, 5.31954384, -0.866025507, -0.499999821, 0, 0.499999821, -0.866025507, 0, 0, 0, 1)
  453. o25.BottomSurface = Enum.SurfaceType.Smooth
  454. o25.TopSurface = Enum.SurfaceType.Smooth
  455. o25.Color = Color3.new(0.803922, 0.803922, 0.803922)
  456. o25.Position = Vector3.new(51.2200012, 3.46000004, 5.31954384)
  457. o26.Parent = o25
  458. o26.Scale = Vector3.new(0.5, 1.5, 0.699999988)
  459. o27.Parent = o1
  460. o27.Material = Enum.Material.SmoothPlastic
  461. o27.BrickColor = BrickColor.new("Mid gray")
  462. o27.Position = Vector3.new(51.0099983, 3.2750001, 5.31954384)
  463. o27.Rotation = Vector3.new(-0, 0, 90)
  464. o27.Anchored = true
  465. o27.CanCollide = false
  466. o27.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003)
  467. o27.CFrame = CFrame.new(51.0099983, 3.2750001, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  468. o27.BottomSurface = Enum.SurfaceType.Smooth
  469. o27.TopSurface = Enum.SurfaceType.Smooth
  470. o27.Color = Color3.new(0.803922, 0.803922, 0.803922)
  471. o27.Position = Vector3.new(51.0099983, 3.2750001, 5.31954384)
  472. o28.Parent = o27
  473. o28.Scale = Vector3.new(0.5, 1.20000005, 0.699999988)
  474. o29.Parent = o1
  475. o29.Material = Enum.Material.SmoothPlastic
  476. o29.BrickColor = BrickColor.new("Mid gray")
  477. o29.Position = Vector3.new(50.8295479, 3.33778, 5.31954384)
  478. o29.Rotation = Vector3.new(-0, 0, 48.0000038)
  479. o29.Anchored = true
  480. o29.CanCollide = false
  481. o29.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003)
  482. o29.CFrame = CFrame.new(50.8295479, 3.33778, 5.31954384, 0.669130564, -0.74314487, 0, 0.74314487, 0.669130564, 0, 0, 0, 1)
  483. o29.BottomSurface = Enum.SurfaceType.Smooth
  484. o29.TopSurface = Enum.SurfaceType.Smooth
  485. o29.Color = Color3.new(0.803922, 0.803922, 0.803922)
  486. o29.Position = Vector3.new(50.8295479, 3.33778, 5.31954384)
  487. o30.Parent = o29
  488. o30.Scale = Vector3.new(0.5, 1, 0.699999988)
  489. o31.Parent = o1
  490. o31.Material = Enum.Material.SmoothPlastic
  491. o31.BrickColor = BrickColor.new("Mid gray")
  492. o31.Position = Vector3.new(49.8057709, 3.23564911, 5.30704403)
  493. o31.Rotation = Vector3.new(-0, -90, 0)
  494. o31.Anchored = true
  495. o31.CanCollide = false
  496. o31.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  497. o31.CFrame = CFrame.new(49.8057709, 3.23564911, 5.30704403, -4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-008)
  498. o31.BottomSurface = Enum.SurfaceType.Smooth
  499. o31.TopSurface = Enum.SurfaceType.Smooth
  500. o31.Color = Color3.new(0.803922, 0.803922, 0.803922)
  501. o31.Position = Vector3.new(49.8057709, 3.23564911, 5.30704403)
  502. o32.Parent = o31
  503. o32.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  504. o32.MeshType = Enum.MeshType.Wedge
  505. o33.Parent = o1
  506. o33.Material = Enum.Material.SmoothPlastic
  507. o33.BrickColor = BrickColor.new("Mid gray")
  508. o33.Position = Vector3.new(49.8667717, 3.22244596, 5.30704403)
  509. o33.Rotation = Vector3.new(90, -45, 90)
  510. o33.Anchored = true
  511. o33.CanCollide = false
  512. o33.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  513. o33.CFrame = CFrame.new(49.8667717, 3.22244596, 5.30704403, -3.09086197e-008, -0.707106829, -0.707106769, -1.28027686e-008, 0.707106769, -0.707106829, 1, -1.28027686e-008, -3.09086197e-008)
  514. o33.BottomSurface = Enum.SurfaceType.Smooth
  515. o33.TopSurface = Enum.SurfaceType.Smooth
  516. o33.Color = Color3.new(0.803922, 0.803922, 0.803922)
  517. o33.Position = Vector3.new(49.8667717, 3.22244596, 5.30704403)
  518. o34.Parent = o33
  519. o34.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  520. o34.MeshType = Enum.MeshType.Wedge
  521. o35.Parent = o1
  522. o35.Material = Enum.Material.SmoothPlastic
  523. o35.BrickColor = BrickColor.new("Mid gray")
  524. o35.Position = Vector3.new(50.4745674, 3.36495113, 5.38520098)
  525. o35.Rotation = Vector3.new(91.2115326, -45.6857071, 0.228031278)
  526. o35.Anchored = true
  527. o35.CanCollide = false
  528. o35.Size = Vector3.new(0.230000064, 0.200000003, 0.709999979)
  529. o35.CFrame = CFrame.new(50.4745674, 3.36495113, 5.38520098, 0.698588252, -0.00278032362, -0.715518475, -0.715436995, -0.0182964802, -0.698437631, -0.0111495871, 0.999828696, -0.0147708533)
  530. o35.BottomSurface = Enum.SurfaceType.Smooth
  531. o35.TopSurface = Enum.SurfaceType.Smooth
  532. o35.Color = Color3.new(0.803922, 0.803922, 0.803922)
  533. o35.Position = Vector3.new(50.4745674, 3.36495113, 5.38520098)
  534. o36.Parent = o1
  535. o36.Material = Enum.Material.Neon
  536. o36.BrickColor = BrickColor.new("Toothpaste")
  537. o36.Position = Vector3.new(50.7599983, 3.6400001, 5.20449972)
  538. o36.Rotation = Vector3.new(-0, 0, -44)
  539. o36.Anchored = true
  540. o36.CanCollide = false
  541. o36.Size = Vector3.new(0.203000054, 0.200000003, 0.200000003)
  542. o36.CFrame = CFrame.new(50.7599983, 3.6400001, 5.20449972, 0.719339788, 0.694658399, 0, -0.694658399, 0.719339788, 0, 0, 0, 1)
  543. o36.BottomSurface = Enum.SurfaceType.Smooth
  544. o36.TopSurface = Enum.SurfaceType.Smooth
  545. o36.Color = Color3.new(0, 1, 1)
  546. o36.Position = Vector3.new(50.7599983, 3.6400001, 5.20449972)
  547. o37.Parent = o36
  548. o37.Scale = Vector3.new(0.800000012, 0.300000012, 0.5)
  549. o38.Parent = o1
  550. o38.Material = Enum.Material.SmoothPlastic
  551. o38.BrickColor = BrickColor.new("Smoky grey")
  552. o38.Position = Vector3.new(51.2353706, 3.95000005, 5.31954384)
  553. o38.Rotation = Vector3.new(-0, 0, 90)
  554. o38.Anchored = true
  555. o38.CanCollide = false
  556. o38.Shape = Enum.PartType.Cylinder
  557. o38.Size = Vector3.new(0.200000003, 0.5, 0.200000003)
  558. o38.CFrame = CFrame.new(51.2353706, 3.95000005, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  559. o38.BottomSurface = Enum.SurfaceType.Smooth
  560. o38.TopSurface = Enum.SurfaceType.Smooth
  561. o38.Color = Color3.new(0.356863, 0.364706, 0.411765)
  562. o38.Position = Vector3.new(51.2353706, 3.95000005, 5.31954384)
  563. o39.Parent = o38
  564. o39.Scale = Vector3.new(1, 0.800000012, 0.600000024)
  565. o40.Parent = o1
  566. o40.Material = Enum.Material.SmoothPlastic
  567. o40.BrickColor = BrickColor.new("Mid gray")
  568. o40.Position = Vector3.new(51.0823708, 3.66909075, 5.31954384)
  569. o40.Anchored = true
  570. o40.CanCollide = false
  571. o40.Size = Vector3.new(0.868000031, 0.200000003, 0.264999986)
  572. o40.CFrame = CFrame.new(51.0823708, 3.66909075, 5.31954384, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  573. o40.BottomSurface = Enum.SurfaceType.Smooth
  574. o40.TopSurface = Enum.SurfaceType.Smooth
  575. o40.Color = Color3.new(0.803922, 0.803922, 0.803922)
  576. o40.Position = Vector3.new(51.0823708, 3.66909075, 5.31954384)
  577. o41.Parent = o1
  578. o41.Material = Enum.Material.SmoothPlastic
  579. o41.BrickColor = BrickColor.new("Mid gray")
  580. o41.Position = Vector3.new(49.8017693, 3.35193205, 5.30704403)
  581. o41.Rotation = Vector3.new(-90, 0, -90)
  582. o41.Anchored = true
  583. o41.CanCollide = false
  584. o41.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  585. o41.CFrame = CFrame.new(49.8017693, 3.35193205, 5.30704403, -4.37113883e-008, 1, 0, 4.37113883e-008, 1.91068547e-015, 1, 1, 4.37113883e-008, -4.37113883e-008)
  586. o41.BottomSurface = Enum.SurfaceType.Smooth
  587. o41.TopSurface = Enum.SurfaceType.Smooth
  588. o41.Color = Color3.new(0.803922, 0.803922, 0.803922)
  589. o41.Position = Vector3.new(49.8017693, 3.35193205, 5.30704403)
  590. o42.Parent = o41
  591. o42.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  592. o42.MeshType = Enum.MeshType.Wedge
  593. o43.Parent = o1
  594. o43.Material = Enum.Material.SmoothPlastic
  595. o43.BrickColor = BrickColor.new("Dark stone grey")
  596. o43.Position = Vector3.new(50.2837715, 3.10236478, 5.31154442)
  597. o43.Rotation = Vector3.new(-0, 0, -20.9999962)
  598. o43.Anchored = true
  599. o43.CanCollide = false
  600. o43.Size = Vector3.new(0.410000026, 0.200000003, 0.400000006)
  601. o43.CFrame = CFrame.new(50.2837715, 3.10236478, 5.31154442, 0.933580458, 0.35836789, 0, -0.35836789, 0.933580458, 0, 0, 0, 1)
  602. o43.BottomSurface = Enum.SurfaceType.Smooth
  603. o43.TopSurface = Enum.SurfaceType.Smooth
  604. o43.Color = Color3.new(0.388235, 0.372549, 0.384314)
  605. o43.Position = Vector3.new(50.2837715, 3.10236478, 5.31154442)
  606. o44.Parent = o1
  607. o44.Material = Enum.Material.SmoothPlastic
  608. o44.BrickColor = BrickColor.new("Black")
  609. o44.Position = Vector3.new(50.8300018, 3.80446577, 5.31500006)
  610. o44.Rotation = Vector3.new(-0, 0, -35.0000076)
  611. o44.Anchored = true
  612. o44.CanCollide = false
  613. o44.Size = Vector3.new(0.206999987, 0.435000002, 0.264999986)
  614. o44.CFrame = CFrame.new(50.8300018, 3.80446577, 5.31500006, 0.819151998, 0.57357651, 0, -0.57357651, 0.819151998, 0, 0, 0, 1)
  615. o44.BottomSurface = Enum.SurfaceType.Smooth
  616. o44.TopSurface = Enum.SurfaceType.Smooth
  617. o44.Color = Color3.new(0.105882, 0.164706, 0.207843)
  618. o44.Position = Vector3.new(50.8300018, 3.80446577, 5.31500006)
  619. o45.Parent = o44
  620. o45.Scale = Vector3.new(1, 1, 0.800000012)
  621. o46.Parent = o1
  622. o46.Material = Enum.Material.SmoothPlastic
  623. o46.BrickColor = BrickColor.new("Mid gray")
  624. o46.Position = Vector3.new(49.8587685, 3.29909968, 5.30704403)
  625. o46.Rotation = Vector3.new(90, 0, -0)
  626. o46.Anchored = true
  627. o46.CanCollide = false
  628. o46.Shape = Enum.PartType.Cylinder
  629. o46.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  630. o46.CFrame = CFrame.new(49.8587685, 3.29909968, 5.30704403, 1, 0, 0, 0, -4.37113883e-008, -1, 0, 1, -4.37113883e-008)
  631. o46.BottomSurface = Enum.SurfaceType.Smooth
  632. o46.TopSurface = Enum.SurfaceType.Smooth
  633. o46.Color = Color3.new(0.803922, 0.803922, 0.803922)
  634. o46.Position = Vector3.new(49.8587685, 3.29909968, 5.30704403)
  635. o47.Parent = o46
  636. o47.Scale = Vector3.new(0.899999976, 0.550000012, 0.899999976)
  637. o48.Parent = o1
  638. o48.Material = Enum.Material.SmoothPlastic
  639. o48.BrickColor = BrickColor.new("Black")
  640. o48.Position = Vector3.new(50.9568748, 3.94950008, 5.31954384)
  641. o48.Anchored = true
  642. o48.CanCollide = false
  643. o48.Size = Vector3.new(0.226999998, 0.358999997, 0.264999986)
  644. o48.CFrame = CFrame.new(50.9568748, 3.94950008, 5.31954384, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  645. o48.BottomSurface = Enum.SurfaceType.Smooth
  646. o48.TopSurface = Enum.SurfaceType.Smooth
  647. o48.Color = Color3.new(0.105882, 0.164706, 0.207843)
  648. o48.Position = Vector3.new(50.9568748, 3.94950008, 5.31954384)
  649. o49.Parent = o48
  650. o49.Scale = Vector3.new(0.699999988, 1, 0.800000012)
  651. o50.Parent = o1
  652. o50.Material = Enum.Material.SmoothPlastic
  653. o50.BrickColor = BrickColor.new("Mid gray")
  654. o50.Position = Vector3.new(50.0637703, 3.18861699, 5.30704403)
  655. o50.Rotation = Vector3.new(-0, 0, -28.9999962)
  656. o50.Anchored = true
  657. o50.CanCollide = false
  658. o50.Size = Vector3.new(0.410000026, 0.200000003, 0.204999998)
  659. o50.CFrame = CFrame.new(50.0637703, 3.18861699, 5.30704403, 0.874619722, 0.484809577, 0, -0.484809577, 0.874619722, 0, 0, 0, 1)
  660. o50.BottomSurface = Enum.SurfaceType.Smooth
  661. o50.TopSurface = Enum.SurfaceType.Smooth
  662. o50.Color = Color3.new(0.803922, 0.803922, 0.803922)
  663. o50.Position = Vector3.new(50.0637703, 3.18861699, 5.30704403)
  664. o51.Parent = o50
  665. o51.Scale = Vector3.new(1, 0.5, 0.5)
  666. o52.Parent = o1
  667. o52.Material = Enum.Material.SmoothPlastic
  668. o52.BrickColor = BrickColor.new("Mid gray")
  669. o52.Position = Vector3.new(50.4745674, 3.3599999, 5.24100018)
  670. o52.Rotation = Vector3.new(91.2115326, -45.6857071, 0.228031278)
  671. o52.Anchored = true
  672. o52.CanCollide = false
  673. o52.Size = Vector3.new(0.230000064, 0.200000003, 0.709999979)
  674. o52.CFrame = CFrame.new(50.4745674, 3.3599999, 5.24100018, 0.698588252, -0.00278032362, -0.715518475, -0.715436995, -0.0182964802, -0.698437631, -0.0111495871, 0.999828696, -0.0147708533)
  675. o52.BottomSurface = Enum.SurfaceType.Smooth
  676. o52.TopSurface = Enum.SurfaceType.Smooth
  677. o52.Color = Color3.new(0.803922, 0.803922, 0.803922)
  678. o52.Position = Vector3.new(50.4745674, 3.3599999, 5.24100018)
  679. o53.Parent = o1
  680. o53.Material = Enum.Material.SmoothPlastic
  681. o53.Position = Vector3.new(51.2313728, 3.87404203, 5.31954384)
  682. o53.Rotation = Vector3.new(-0, 0, 90)
  683. o53.Anchored = true
  684. o53.CanCollide = false
  685. o53.Shape = Enum.PartType.Cylinder
  686. o53.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  687. o53.CFrame = CFrame.new(51.2313728, 3.87404203, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  688. o53.BottomSurface = Enum.SurfaceType.Smooth
  689. o53.TopSurface = Enum.SurfaceType.Smooth
  690. o53.Position = Vector3.new(51.2313728, 3.87404203, 5.31954384)
  691. o54.Parent = o53
  692. o54.Scale = Vector3.new(1, 0.800000012, 0.600000024)
  693. o55.Parent = o1
  694. o55.Material = Enum.Material.SmoothPlastic
  695. o55.BrickColor = BrickColor.new("Mid gray")
  696. o55.Position = Vector3.new(50.6496391, 3.44902349, 5.3220439)
  697. o55.Rotation = Vector3.new(-0, 0, 46)
  698. o55.Anchored = true
  699. o55.CanCollide = false
  700. o55.Size = Vector3.new(0.605000019, 0.200000003, 0.200000003)
  701. o55.CFrame = CFrame.new(50.6496391, 3.44902349, 5.3220439, 0.694658399, -0.719339788, 0, 0.719339788, 0.694658399, 0, 0, 0, 1)
  702. o55.BottomSurface = Enum.SurfaceType.Smooth
  703. o55.TopSurface = Enum.SurfaceType.Smooth
  704. o55.Color = Color3.new(0.803922, 0.803922, 0.803922)
  705. o55.Position = Vector3.new(50.6496391, 3.44902349, 5.3220439)
  706. o56.Parent = o1
  707. o56.Material = Enum.Material.SmoothPlastic
  708. o56.BrickColor = BrickColor.new("Black")
  709. o56.Position = Vector3.new(52.3800011, 4.23000002, 5.32000017)
  710. o56.Anchored = true
  711. o56.CanCollide = false
  712. o56.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983)
  713. o56.CFrame = CFrame.new(52.3800011, 4.23000002, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  714. o56.BottomSurface = Enum.SurfaceType.Smooth
  715. o56.TopSurface = Enum.SurfaceType.Smooth
  716. o56.Color = Color3.new(0.105882, 0.164706, 0.207843)
  717. o56.Position = Vector3.new(52.3800011, 4.23000002, 5.32000017)
  718. o57.Parent = o56
  719. o57.Scale = Vector3.new(0.800000012, 0.400000006, 0.25)
  720. o57.MeshType = Enum.MeshType.Torso
  721. o58.Parent = o1
  722. o58.Material = Enum.Material.SmoothPlastic
  723. o58.BrickColor = BrickColor.new("Black")
  724. o58.Position = Vector3.new(52.3800011, 4.14001513, 5.32000017)
  725. o58.Anchored = true
  726. o58.CanCollide = false
  727. o58.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983)
  728. o58.CFrame = CFrame.new(52.3800011, 4.14001513, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  729. o58.BottomSurface = Enum.SurfaceType.Smooth
  730. o58.TopSurface = Enum.SurfaceType.Smooth
  731. o58.Color = Color3.new(0.105882, 0.164706, 0.207843)
  732. o58.Position = Vector3.new(52.3800011, 4.14001513, 5.32000017)
  733. o59.Parent = o58
  734. o59.Scale = Vector3.new(0.800000012, 0.5, 0.699999988)
  735. o60.Parent = o1
  736. o60.Material = Enum.Material.SmoothPlastic
  737. o60.BrickColor = BrickColor.new("Mid gray")
  738. o60.Position = Vector3.new(51.6235008, 3.67000008, 5.32000017)
  739. o60.Rotation = Vector3.new(-180, -90, 0)
  740. o60.Anchored = true
  741. o60.CanCollide = false
  742. o60.Size = Vector3.new(0.200000003, 0.200000003, 0.216999978)
  743. o60.CFrame = CFrame.new(51.6235008, 3.67000008, 5.32000017, -4.37113883e-008, 0, -1, 1.50995803e-007, -1, -6.60023616e-015, -1, -1.50995803e-007, 4.37113883e-008)
  744. o60.BottomSurface = Enum.SurfaceType.Smooth
  745. o60.TopSurface = Enum.SurfaceType.Smooth
  746. o60.Color = Color3.new(0.803922, 0.803922, 0.803922)
  747. o60.Position = Vector3.new(51.6235008, 3.67000008, 5.32000017)
  748. o61.Parent = o60
  749. o61.Scale = Vector3.new(1.29999995, 1, 1)
  750. o61.MeshType = Enum.MeshType.Wedge
  751. o62.Parent = o1
  752. o62.Material = Enum.Material.SmoothPlastic
  753. o62.BrickColor = BrickColor.new("Mid gray")
  754. o62.Position = Vector3.new(51.5999985, 4.21000004, 5.32000017)
  755. o62.Rotation = Vector3.new(-0, -90, 0)
  756. o62.Anchored = true
  757. o62.CanCollide = false
  758. o62.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  759. o62.CFrame = CFrame.new(51.5999985, 4.21000004, 5.32000017, -4.37113883e-008, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-008)
  760. o62.BottomSurface = Enum.SurfaceType.Smooth
  761. o62.TopSurface = Enum.SurfaceType.Smooth
  762. o62.Color = Color3.new(0.803922, 0.803922, 0.803922)
  763. o62.Position = Vector3.new(51.5999985, 4.21000004, 5.32000017)
  764. o63.Parent = o62
  765. o63.Scale = Vector3.new(0.899999976, 0.200000003, 1)
  766. o63.MeshType = Enum.MeshType.Wedge
  767. o64.Parent = o1
  768. o64.Material = Enum.Material.SmoothPlastic
  769. o64.BrickColor = BrickColor.new("Mid gray")
  770. o64.Position = Vector3.new(51.7574959, 4.13999987, 5.32000017)
  771. o64.Anchored = true
  772. o64.CanCollide = false
  773. o64.Size = Vector3.new(1.44499993, 0.200000003, 0.204999983)
  774. o64.CFrame = CFrame.new(51.7574959, 4.13999987, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  775. o64.BottomSurface = Enum.SurfaceType.Smooth
  776. o64.TopSurface = Enum.SurfaceType.Smooth
  777. o64.Color = Color3.new(0.803922, 0.803922, 0.803922)
  778. o64.Position = Vector3.new(51.7574959, 4.13999987, 5.32000017)
  779. o65.Parent = o64
  780. o65.Scale = Vector3.new(1, 0.5, 0.800000012)
  781. o66.Parent = o1
  782. o66.Material = Enum.Material.SmoothPlastic
  783. o66.BrickColor = BrickColor.new("Mid gray")
  784. o66.Position = Vector3.new(51.8513641, 3.88200378, 5.31954384)
  785. o66.Rotation = Vector3.new(-0, 0, 90)
  786. o66.Anchored = true
  787. o66.CanCollide = false
  788. o66.Shape = Enum.PartType.Cylinder
  789. o66.Size = Vector3.new(0.200000003, 0.899999976, 0.200000003)
  790. o66.CFrame = CFrame.new(51.8513641, 3.88200378, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  791. o66.BottomSurface = Enum.SurfaceType.Smooth
  792. o66.TopSurface = Enum.SurfaceType.Smooth
  793. o66.Color = Color3.new(0.803922, 0.803922, 0.803922)
  794. o66.Position = Vector3.new(51.8513641, 3.88200378, 5.31954384)
  795. o67.Parent = o66
  796. o67.Scale = Vector3.new(0.800000012, 0.850000024, 0.800000012)
  797. o68.Parent = o1
  798. o68.Material = Enum.Material.SmoothPlastic
  799. o68.BrickColor = BrickColor.new("Mid gray")
  800. o68.Position = Vector3.new(51.4799995, 4, 5.31954384)
  801. o68.Rotation = Vector3.new(-0, 0, 90)
  802. o68.Anchored = true
  803. o68.CanCollide = false
  804. o68.Shape = Enum.PartType.Cylinder
  805. o68.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  806. o68.CFrame = CFrame.new(51.4799995, 4, 5.31954384, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  807. o68.BottomSurface = Enum.SurfaceType.Smooth
  808. o68.TopSurface = Enum.SurfaceType.Smooth
  809. o68.Color = Color3.new(0.803922, 0.803922, 0.803922)
  810. o68.Position = Vector3.new(51.4799995, 4, 5.31954384)
  811. o69.Parent = o68
  812. o70.Parent = o1
  813. o70.Material = Enum.Material.SmoothPlastic
  814. o70.BrickColor = BrickColor.new("Mid gray")
  815. o70.Position = Vector3.new(51.4289932, 3.75999999, 5.32000017)
  816. o70.Anchored = true
  817. o70.CanCollide = false
  818. o70.Size = Vector3.new(0.200000003, 0.200000003, 0.204999983)
  819. o70.CFrame = CFrame.new(51.4289932, 3.75999999, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  820. o70.BottomSurface = Enum.SurfaceType.Smooth
  821. o70.TopSurface = Enum.SurfaceType.Smooth
  822. o70.Color = Color3.new(0.803922, 0.803922, 0.803922)
  823. o70.Position = Vector3.new(51.4289932, 3.75999999, 5.32000017)
  824. o71.Parent = o70
  825. o71.Scale = Vector3.new(0.5, 1.89999998, 1)
  826. o72.Parent = o1
  827. o72.Material = Enum.Material.Neon
  828. o72.BrickColor = BrickColor.new("Toothpaste")
  829. o72.Position = Vector3.new(52.1899986, 3.87007713, 5.32449865)
  830. o72.Rotation = Vector3.new(0, 90, 0)
  831. o72.Anchored = true
  832. o72.CanCollide = false
  833. o72.Size = Vector3.new(0.203000054, 0.200000003, 0.200000003)
  834. o72.CFrame = CFrame.new(52.1899986, 3.87007713, 5.32449865, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
  835. o72.BottomSurface = Enum.SurfaceType.Smooth
  836. o72.TopSurface = Enum.SurfaceType.Smooth
  837. o72.Color = Color3.new(0, 1, 1)
  838. o72.Position = Vector3.new(52.1899986, 3.87007713, 5.32449865)
  839. o73.Parent = o72
  840. o73.Scale = Vector3.new(0.400000006, 0.300000012, 0.5)
  841. o74.Parent = o1
  842. o74.Material = Enum.Material.SmoothPlastic
  843. o74.BrickColor = BrickColor.new("Mid gray")
  844. o74.Position = Vector3.new(51.2900009, 4.21000004, 5.32000017)
  845. o74.Anchored = true
  846. o74.CanCollide = false
  847. o74.Size = Vector3.new(0.42900002, 0.200000003, 0.204999983)
  848. o74.CFrame = CFrame.new(51.2900009, 4.21000004, 5.32000017, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  849. o74.BottomSurface = Enum.SurfaceType.Smooth
  850. o74.TopSurface = Enum.SurfaceType.Smooth
  851. o74.Color = Color3.new(0.803922, 0.803922, 0.803922)
  852. o74.Position = Vector3.new(51.2900009, 4.21000004, 5.32000017)
  853. o75.Parent = o74
  854. o75.Scale = Vector3.new(1, 0.25, 1)
  855. o76.Parent = o1
  856. o76.Material = Enum.Material.SmoothPlastic
  857. o76.BrickColor = BrickColor.new("Dark stone grey")
  858. o76.Position = Vector3.new(50.7550011, 3.6400001, 5.32000017)
  859. o76.Rotation = Vector3.new(-0, 0, 1.28066051e-006)
  860. o76.Anchored = true
  861. o76.CanCollide = false
  862. o76.Size = Vector3.new(0.225000039, 0.209999993, 0.300000012)
  863. o76.CFrame = CFrame.new(50.7550011, 3.6400001, 5.32000017, 1, -2.23517418e-008, 0, 2.23517418e-008, 1, 0, 0, 0, 1)
  864. o76.BottomSurface = Enum.SurfaceType.Smooth
  865. o76.TopSurface = Enum.SurfaceType.Smooth
  866. o76.Color = Color3.new(0.388235, 0.372549, 0.384314)
  867. o76.Position = Vector3.new(50.7550011, 3.6400001, 5.32000017)
  868. o77.Parent = o1
  869. o77.Material = Enum.Material.Neon
  870. o77.BrickColor = BrickColor.new("Toothpaste")
  871. o77.Position = Vector3.new(50.7610054, 3.64415002, 5.44049978)
  872. o77.Rotation = Vector3.new(-0, 0, -44)
  873. o77.Anchored = true
  874. o77.CanCollide = false
  875. o77.Size = Vector3.new(0.203000054, 0.200000003, 0.200000003)
  876. o77.CFrame = CFrame.new(50.7610054, 3.64415002, 5.44049978, 0.719339788, 0.694658399, 0, -0.694658399, 0.719339788, 0, 0, 0, 1)
  877. o77.BottomSurface = Enum.SurfaceType.Smooth
  878. o77.TopSurface = Enum.SurfaceType.Smooth
  879. o77.Color = Color3.new(0, 1, 1)
  880. o77.Position = Vector3.new(50.7610054, 3.64415002, 5.44049978)
  881. o78.Parent = o77
  882. o78.Scale = Vector3.new(0.800000012, 0.300000012, 0.5)
  883. o79.Parent = o1
  884. o79.Material = Enum.Material.SmoothPlastic
  885. o79.BrickColor = BrickColor.new("Mid gray")
  886. o79.Position = Vector3.new(49.8607674, 3.37296009, 5.30704403)
  887. o79.Rotation = Vector3.new(-90, 45, -90)
  888. o79.Anchored = true
  889. o79.CanCollide = false
  890. o79.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  891. o79.CFrame = CFrame.new(49.8607674, 3.37296009, 5.30704403, -3.09086197e-008, 0.707106829, 0.707106769, 7.46200044e-008, -0.707106769, 0.707106829, 1, 7.46200044e-008, -3.09086197e-008)
  892. o79.BottomSurface = Enum.SurfaceType.Smooth
  893. o79.TopSurface = Enum.SurfaceType.Smooth
  894. o79.Color = Color3.new(0.803922, 0.803922, 0.803922)
  895. o79.Position = Vector3.new(49.8607674, 3.37296009, 5.30704403)
  896. o80.Parent = o79
  897. o80.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  898. o80.MeshType = Enum.MeshType.Wedge
  899. o81.Parent = o1
  900. o81.Material = Enum.Material.SmoothPlastic
  901. o81.BrickColor = BrickColor.new("Mid gray")
  902. o81.Position = Vector3.new(49.9099998, 3.35300016, 5.30999994)
  903. o81.Rotation = Vector3.new(180, 90, 0)
  904. o81.Anchored = true
  905. o81.CanCollide = false
  906. o81.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  907. o81.CFrame = CFrame.new(49.9099998, 3.35300016, 5.30999994, -4.37113883e-008, 0, 1, 1.50995803e-007, -1, 6.60023616e-015, 1, 1.50995803e-007, 4.37113883e-008)
  908. o81.BottomSurface = Enum.SurfaceType.Smooth
  909. o81.TopSurface = Enum.SurfaceType.Smooth
  910. o81.Color = Color3.new(0.803922, 0.803922, 0.803922)
  911. o81.Position = Vector3.new(49.9099998, 3.35300016, 5.30999994)
  912. o82.Parent = o81
  913. o82.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  914. o82.MeshType = Enum.MeshType.Wedge
  915. o83.Parent = o1
  916. o83.Material = Enum.Material.SmoothPlastic
  917. o83.BrickColor = BrickColor.new("Mid gray")
  918. o83.Position = Vector3.new(49.7807693, 3.30195999, 5.30704403)
  919. o83.Rotation = Vector3.new(-90, -45, -90)
  920. o83.Anchored = true
  921. o83.CanCollide = false
  922. o83.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  923. o83.CFrame = CFrame.new(49.7807693, 3.30195999, 5.30704403, -3.09086197e-008, 0.707106829, -0.707106769, 1.28027686e-008, 0.707106769, 0.707106829, 1, 1.28027686e-008, -3.09086197e-008)
  924. o83.BottomSurface = Enum.SurfaceType.Smooth
  925. o83.TopSurface = Enum.SurfaceType.Smooth
  926. o83.Color = Color3.new(0.803922, 0.803922, 0.803922)
  927. o83.Position = Vector3.new(49.7807693, 3.30195999, 5.30704403)
  928. o84.Parent = o83
  929. o84.Scale = Vector3.new(0.600000024, 0.349999994, 0.349999994)
  930. o84.MeshType = Enum.MeshType.Wedge
  931. o85.Parent = o1
  932. o85.Material = Enum.Material.SmoothPlastic
  933. o85.BrickColor = BrickColor.new("Mid gray")
  934. o85.Position = Vector3.new(50.9780006, 4.17999983, 5.32000017)
  935. o85.Rotation = Vector3.new(0, 90, 0)
  936. o85.Anchored = true
  937. o85.CanCollide = false
  938. o85.Size = Vector3.new(0.200000003, 0.200000003, 0.204999998)
  939. o85.CFrame = CFrame.new(50.9780006, 4.17999983, 5.32000017, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008)
  940. o85.BottomSurface = Enum.SurfaceType.Smooth
  941. o85.TopSurface = Enum.SurfaceType.Smooth
  942. o85.Color = Color3.new(0.803922, 0.803922, 0.803922)
  943. o85.Position = Vector3.new(50.9780006, 4.17999983, 5.32000017)
  944. o86.Parent = o85
  945. o86.Scale = Vector3.new(1, 0.5, 1)
  946. o86.MeshType = Enum.MeshType.Wedge
  947. o87.Name = "A1"
  948. o87.Parent = o1
  949. o87.Material = Enum.Material.Neon
  950. o87.BrickColor = BrickColor.new("Toothpaste")
  951. o87.Position = Vector3.new(51.2319984, 4.05000019, 5.32000017)
  952. o87.Rotation = Vector3.new(-0, 0, 90)
  953. o87.Anchored = true
  954. o87.CanCollide = false
  955. o87.Shape = Enum.PartType.Cylinder
  956. o87.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  957. o87.CFrame = CFrame.new(51.2319984, 4.05000019, 5.32000017, -4.37113883e-008, -1, 0, 1, -4.37113883e-008, 0, 0, 0, 1)
  958. o87.BottomSurface = Enum.SurfaceType.Smooth
  959. o87.TopSurface = Enum.SurfaceType.Smooth
  960. o87.Color = Color3.new(0, 1, 1)
  961. o87.Position = Vector3.new(51.2319984, 4.05000019, 5.32000017)
  962. o88.Parent = o87
  963. o88.Scale = Vector3.new(1, 1.54999995, 0.400000006)
  964. o89.Name = "T1"
  965. o89.Parent = o1
  966. o89.Material = Enum.Material.SmoothPlastic
  967. o89.BrickColor = BrickColor.new("Dark stone grey")
  968. o89.Position = Vector3.new(50.8995514, 3.52338958, 5.31954384)
  969. o89.Rotation = Vector3.new(-0, 0, 29.0000076)
  970. o89.Anchored = true
  971. o89.CanCollide = false
  972. o89.Size = Vector3.new(0.200000003, 0.223999992, 0.200000003)
  973. o89.CFrame = CFrame.new(50.8995514, 3.52338958, 5.31954384, 0.874619663, -0.484809726, 0, 0.484809726, 0.874619663, 0, 0, 0, 1)
  974. o89.BottomSurface = Enum.SurfaceType.Smooth
  975. o89.TopSurface = Enum.SurfaceType.Smooth
  976. o89.Color = Color3.new(0.388235, 0.372549, 0.384314)
  977. o89.Position = Vector3.new(50.8995514, 3.52338958, 5.31954384)
  978. o90.Parent = o89
  979. o90.Scale = Vector3.new(0.5, 1, 0.5)
  980. mas.Parent = workspace
  981. mas:MakeJoints()
  982. local mas1 = mas:GetChildren()
  983. for i=1,#mas1 do
  984. mas1[i].Parent = workspace
  985. ypcall(function() mas1[i]:MakeJoints() end)
  986. end
  987. mas:Destroy()
  988. for i=1,#cors do
  989. coroutine.resume(cors[i])
  990. end
  991.  
  992. local Revolver = o1
  993. local Handle = o24
  994. local BarrelEnd = o14
  995. local Chamber = o18
  996. local A1 = o87
  997. local A2 = o6
  998. local A3 = o4
  999. local A4 = o10
  1000. local A5 = o8
  1001. local A6 = o2
  1002. local H1 = o20
  1003. local H2 = o22
  1004. local T1 = o89
  1005. local T2 = o16
  1006.  
  1007. -----------------------------------------------------------------------------------
  1008.  
  1009. function indicate(part,var,typer)
  1010. local clonepart = Instance.new("Part", workspace)
  1011. clonepart.Size = Vector3.new(1,1,1)
  1012. clonepart.CanCollide = false
  1013. clonepart.Anchored = true
  1014. clonepart.CFrame = part.CFrame
  1015. clonepart.Transparency = 1
  1016. local base1 = Instance.new("BillboardGui", clonepart)
  1017. base1.Name = "damage"
  1018. base1.ExtentsOffset = Vector3.new(-0.1,2,0)
  1019. base1.Size = UDim2.new(1,0,1,0)
  1020. base1.Adornee = clonepart
  1021. local indicator = Instance.new("TextLabel", base1)
  1022. indicator.Text = "-"..var
  1023. indicator.TextScaled = false
  1024. indicator.TextWrapped = false
  1025. if typer == 0 then
  1026. indicator.TextColor3 = Color3.new(1,0,0)
  1027. elseif typer == 1 then
  1028. indicator.TextColor3 = Color3.new(0.5,0.5,0)
  1029. end
  1030. indicator.TextScaled = true
  1031. indicator.FontSize = 7
  1032. indicator.Font = "Fantasy"
  1033. indicator.Size = UDim2.new(1,0,1,0)
  1034. indicator.BackgroundTransparency = 1
  1035. local change = coroutine.wrap(function(thing,thing2)
  1036. for i=1, 20 do
  1037. thing.TextTransparency = thing.TextTransparency + 0.05
  1038. thing2.ExtentsOffset = thing2.ExtentsOffset + Vector3.new(0,0.1,0)
  1039. wait(0.01)
  1040. end
  1041. indicator.Parent.Parent:Remove()
  1042. end)
  1043. change(indicator,base1)
  1044. end
  1045.  
  1046. local Player = game.Players.LocalPlayer
  1047. local Mouse = Player:GetMouse()
  1048. Mouse.TargetFilter = Player.Character
  1049. local Character = Player.Character
  1050. local Humanoid = Character.Humanoid
  1051.  
  1052. Humanoid.WalkSpeed = 20
  1053. Humanoid.JumpPower = 1
  1054. Humanoid.MaxHealth = 100
  1055. wait()
  1056. Humanoid.Health = Humanoid.MaxHealth
  1057.  
  1058. local ammo = 6
  1059. local attacking = false
  1060. local waiting = false
  1061.  
  1062. local p1 = Instance.new("ScreenGui")
  1063. local p2 = Instance.new("TextLabel")
  1064. p1.Parent = Player.PlayerGui
  1065. p2.Parent = p1
  1066. p2.Position = UDim2.new(0.5,0,0.8,0)
  1067. p2.Size = UDim2.new(0.05,0,0.05,0)
  1068. p2.Position = UDim2.new(0.5,0,0.8,0)
  1069. p2.Position = UDim2.new(0.5,0,0.8,0)
  1070. p2.BackgroundColor3 = Color3.new(0,0,0)
  1071. p2.BackgroundTransparency = 1
  1072. p2.BorderSizePixel = 0
  1073. p2.Font = Enum.Font.SourceSans
  1074. p2.FontSize = Enum.FontSize.Size96
  1075. p2.Text = ammo.."/6"
  1076. p2.TextColor3 = Color3.new(1,1,1)
  1077.  
  1078. local animstate = 0
  1079. local keyframe = 0
  1080. local animstate2 = -1
  1081. local keyframe2 = -1
  1082.  
  1083. -- highnoon: 507504338
  1084. -- draw: 423993839
  1085.  
  1086. local gunshot = Instance.new("Sound", BarrelEnd)
  1087. gunshot.Volume = 0.8
  1088. gunshot.SoundId = "rbxassetid://145080998"
  1089.  
  1090. local reload = Instance.new("Sound", Character.Torso)
  1091. reload.Volume = 1
  1092. reload.SoundId = "rbxassetid://506273075"
  1093.  
  1094. local roll = Instance.new("Sound", Character.Torso)
  1095. roll.Volume = 1
  1096. roll.SoundId = "rbxassetid://328825627"
  1097.  
  1098. local LRP = Character.HumanoidRootPart.CFrame
  1099.  
  1100. Joints={
  1101. Character.HumanoidRootPart.RootJoint;
  1102. Character.Torso.Neck;
  1103. Character.Torso['Left Shoulder'];
  1104. Character.Torso['Right Shoulder'];
  1105. Character.Torso['Left Hip'];
  1106. Character.Torso['Right Hip'];
  1107. }
  1108. CurrentJoints={
  1109. Character.HumanoidRootPart.RootJoint.C0;
  1110. Character.Torso.Neck.C0;
  1111. Character.Torso['Left Shoulder'].C0;
  1112. Character.Torso['Right Shoulder'].C0;
  1113. Character.Torso['Left Hip'].C0;
  1114. Character.Torso['Right Hip'].C0;
  1115. }
  1116. LastJoints={
  1117. Character.HumanoidRootPart.RootJoint.C0;
  1118. Character.Torso.Neck.C0;
  1119. Character.Torso['Left Shoulder'].C0;
  1120. Character.Torso['Right Shoulder'].C0;
  1121. Character.Torso['Left Hip'].C0;
  1122. Character.Torso['Right Hip'].C0;
  1123. }
  1124.  
  1125. local orig1 = Joints[1].C0
  1126. local orig2 = Joints[2].C0
  1127. local orig3 = Joints[3].C0
  1128. local orig4 = Joints[4].C0
  1129. local orig5 = Joints[5].C0
  1130. local orig6 = Joints[6].C0
  1131.  
  1132. Revolver.Parent = Character
  1133. Character.Animate:remove()
  1134. Character.Humanoid.Animator:remove()
  1135.  
  1136. for _,v in pairs (Revolver:GetChildren()) do
  1137. if v.Name ~= "Handle" and (v.Name ~= "A1" and v.Name ~= "A2" and v.Name ~= "A3" and v.Name ~= "A4" and v.Name ~= "A5" and v.Name ~= "A6") and v.Name ~= "T2" and v.Name ~= "H2" then
  1138. local NewWeld = Instance.new("Weld")
  1139. NewWeld.Part0 = Handle
  1140. NewWeld.Part1 = v
  1141. NewWeld.C0 = CFrame.new()
  1142. NewWeld.C1 = v.CFrame:toObjectSpace(Handle.CFrame)
  1143. NewWeld.Parent = Handle
  1144. if v.Name == "Chamber" then
  1145. NewWeld.Name = "ChamberWeld"
  1146. elseif v.Name == "H1" then
  1147. NewWeld.Name = "HammerWeld"
  1148. elseif v.Name == "T1" then
  1149. NewWeld.Name = "TriggerWeld"
  1150. end
  1151. end
  1152. if v.Name == "A1" or v.Name == "A2" or v.Name == "A3" or v.Name == "A4" or v.Name == "A5" or v.Name == "A6" then
  1153. local NewWeld = Instance.new("Weld")
  1154. NewWeld.Part0 = Chamber
  1155. NewWeld.Part1 = v
  1156. NewWeld.C0 = CFrame.new()
  1157. NewWeld.C1 = v.CFrame:toObjectSpace(Chamber.CFrame)
  1158. NewWeld.Parent = Chamber
  1159. end
  1160. if v.Name == "H2" then
  1161. local NewWeld = Instance.new("Weld")
  1162. NewWeld.Part0 = H1
  1163. NewWeld.Part1 = v
  1164. NewWeld.C0 = CFrame.new()
  1165. NewWeld.C1 = v.CFrame:toObjectSpace(H1.CFrame)
  1166. NewWeld.Parent = H1
  1167. end
  1168. if v.Name == "T2" then
  1169. local NewWeld = Instance.new("Weld")
  1170. NewWeld.Part0 = T1
  1171. NewWeld.Part1 = v
  1172. NewWeld.C0 = CFrame.new()
  1173. NewWeld.C1 = v.CFrame:toObjectSpace(T1.CFrame)
  1174. NewWeld.Parent = T1
  1175. end
  1176. wait()
  1177. end
  1178. for _,v in pairs (Revolver:GetChildren()) do
  1179. v.Anchored = false
  1180. wait()
  1181. end
  1182.  
  1183. local Cweld = Handle:FindFirstChild("ChamberWeld")
  1184. local Hweld = Handle:FindFirstChild("HammerWeld")
  1185. local Tweld = Handle:FindFirstChild("TriggerWeld")
  1186.  
  1187. local origh = Hweld.C0
  1188. local origt = Tweld.C0
  1189.  
  1190. GunJoints={
  1191. Hweld;
  1192. Tweld;
  1193. }
  1194. CurrentGunJoints={
  1195. Hweld.C0;
  1196. Tweld.C0;
  1197. }
  1198. LastGunJoints={
  1199. Hweld.C0;
  1200. Tweld.C0;
  1201. }
  1202.  
  1203. Handle.CFrame = Character:FindFirstChild("Right Arm").CFrame*CFrame.new(0,-2.2,-0.7)*CFrame.Angles(math.rad(90),math.rad(90),math.rad(180))
  1204.  
  1205. local HandleWeld = Instance.new("Weld")
  1206. HandleWeld.Name = "HandleWeld"
  1207. HandleWeld.Part0 = Character:FindFirstChild("Right Arm")
  1208. HandleWeld.Part1 = Handle
  1209. HandleWeld.C0 = CFrame.new(0,0,0)
  1210. HandleWeld.C1 = Handle.CFrame:toObjectSpace(Character:FindFirstChild("Right Arm").CFrame)
  1211. HandleWeld.Parent = Handle
  1212.  
  1213. local hat = Instance.new("Part", Character)
  1214. hat.CanCollide = false
  1215. hat.Size = Vector3.new(1,0.4,1)
  1216. hat.Name = "Hat"
  1217.  
  1218. local mesh = Instance.new("SpecialMesh", hat)
  1219. mesh.MeshType = 2
  1220. mesh.Name = "Mesh"
  1221. mesh.MeshId = "rbxassetid://1029586"
  1222. mesh.TextureId = "rbxassetid://1029588"
  1223. mesh.VertexColor = Vector3.new(0.4,0.3,0.2)
  1224.  
  1225. hat.CFrame = Character.Head.CFrame*CFrame.new(0,0.6,0)
  1226. local HatWeld = Instance.new("Weld")
  1227. HatWeld.Name = "HatWeld"
  1228. HatWeld.Part0 = Character.Head
  1229. HatWeld.Part1 = hat
  1230. HatWeld.C0 = CFrame.new(0,0,0)
  1231. HatWeld.C1 = hat.CFrame:toObjectSpace(Character.Head.CFrame)
  1232. HatWeld.Parent = hat
  1233.  
  1234. function weld(part1,part2,name)
  1235. local Weld = Instance.new("Weld")
  1236. if name then
  1237. Weld.Name = name
  1238. else
  1239. Weld.Name = "Weld"
  1240. end
  1241. Weld.Part0 = part1
  1242. Weld.Part1 = part2
  1243. Weld.C0 = CFrame.new(0,0,0)
  1244. Weld.C1 = part2.CFrame:toObjectSpace(part1.CFrame)
  1245. Weld.Parent = part2
  1246. end
  1247.  
  1248. local timer = 0
  1249. local timer2 = 0
  1250.  
  1251. local cooled1 = true
  1252. local cooled2 = true
  1253. local cooled3 = true
  1254. local ultcharge = 0
  1255.  
  1256. game:GetService("RunService").RenderStepped:connect(function()
  1257. p2.Text = ammo.."/6"
  1258. if animstate ~= 0 then
  1259. print("time"..timer)
  1260. print("a1"..animstate)
  1261. print("a2"..animstate2)
  1262. end
  1263. if Player.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) and animstate ~= 0 and animstate ~= 2 and not waiting then
  1264. animstate = 0
  1265. keyframe = -1
  1266. timer = 0
  1267. LastJoints = CurrentJoints
  1268. elseif Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and animstate ~= 1 and animstate ~= 2 and not waiting then
  1269. animstate = 1
  1270. keyframe = -1
  1271. timer = 0
  1272. LastJoints = CurrentJoints
  1273. end
  1274. timer = timer + 1
  1275. timer2 = timer2 + 1
  1276. if animstate == 0 then
  1277. if keyframe == -1 then
  1278. local JointTargets={}
  1279. if not attacking then
  1280. JointTargets={
  1281. orig1*CFrame.Angles(math.rad(5),0,0);
  1282. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1283. orig3*CFrame.Angles(math.rad(-25),0,0);
  1284. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1285. orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1286. orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1287. }
  1288. else
  1289. JointTargets={
  1290. orig1*CFrame.Angles(math.rad(5),0,0);
  1291. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1292. 0;
  1293. 0;
  1294. orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1295. orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1296. }
  1297. end
  1298. for p=1,#Joints do
  1299. if JointTargets[p] ~= 0 then
  1300. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10))
  1301. if attacking then
  1302. CurrentJoints={
  1303. Joints[1].C0;
  1304. Joints[2].C0;
  1305. CurrentJoints[3];
  1306. CurrentJoints[4];
  1307. Joints[5].C0;
  1308. Joints[6].C0;
  1309. }
  1310. else
  1311. CurrentJoints={
  1312. Joints[1].C0;
  1313. Joints[2].C0;
  1314. Joints[3].C0;
  1315. Joints[4].C0;
  1316. Joints[5].C0;
  1317. Joints[6].C0;
  1318. }
  1319. end
  1320. end
  1321. end
  1322. if timer >= 10 then
  1323. keyframe = 1
  1324. timer = 0
  1325. LastJoints = CurrentJoints
  1326. end
  1327. elseif keyframe == 0 then
  1328. local JointTargets={}
  1329. if not attacking then
  1330. JointTargets={
  1331. orig1*CFrame.Angles(math.rad(5),0,0);
  1332. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1333. orig3*CFrame.Angles(math.rad(-25),0,0);
  1334. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1335. orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1336. orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1337. }
  1338. else
  1339. JointTargets={
  1340. orig1*CFrame.Angles(math.rad(5),0,0);
  1341. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1342. 0;
  1343. 0;
  1344. orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1345. orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1346. }
  1347. end
  1348. for p=1,#Joints do
  1349. if JointTargets[p] ~= 0 then
  1350. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/40))
  1351. if attacking then
  1352. CurrentJoints={
  1353. Joints[1].C0;
  1354. Joints[2].C0;
  1355. CurrentJoints[3];
  1356. CurrentJoints[4];
  1357. Joints[5].C0;
  1358. Joints[6].C0;
  1359. }
  1360. else
  1361. CurrentJoints={
  1362. Joints[1].C0;
  1363. Joints[2].C0;
  1364. Joints[3].C0;
  1365. Joints[4].C0;
  1366. Joints[5].C0;
  1367. Joints[6].C0;
  1368. }
  1369. end
  1370. end
  1371. end
  1372. if timer >= 40 then
  1373. wait(0.1)
  1374. keyframe = 1
  1375. timer = 0
  1376. LastJoints = CurrentJoints
  1377. end
  1378. elseif keyframe == 1 then
  1379. local JointTargets={}
  1380. if not attacking then
  1381. JointTargets={
  1382. orig1*CFrame.new(0,0,0.05)*CFrame.Angles(math.rad(2),0,0);
  1383. orig2*CFrame.Angles(math.rad(-2)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1384. orig3*CFrame.Angles(math.rad(-35),0,0);
  1385. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(93)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1386. orig5*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(18));
  1387. orig6*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(12));
  1388. }
  1389. else
  1390. JointTargets={
  1391. orig1*CFrame.new(0,0,0.05)*CFrame.Angles(math.rad(2),0,0);
  1392. orig2*CFrame.Angles(math.rad(-2)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1393. 0;
  1394. 0;
  1395. orig5*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(18));
  1396. orig6*CFrame.new(0,-0.15,0)*CFrame.Angles(math.rad(-5),0,math.rad(12));
  1397. }
  1398. end
  1399. for p=1,#Joints do
  1400. if JointTargets[p] ~= 0 then
  1401. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/40))
  1402. if attacking then
  1403. CurrentJoints={
  1404. Joints[1].C0;
  1405. Joints[2].C0;
  1406. CurrentJoints[3];
  1407. CurrentJoints[4];
  1408. Joints[5].C0;
  1409. Joints[6].C0;
  1410. }
  1411. else
  1412. CurrentJoints={
  1413. Joints[1].C0;
  1414. Joints[2].C0;
  1415. Joints[3].C0;
  1416. Joints[4].C0;
  1417. Joints[5].C0;
  1418. Joints[6].C0;
  1419. }
  1420. end
  1421. end
  1422. end
  1423. if timer >= 40 then
  1424. wait(0.1)
  1425. keyframe = 0
  1426. timer = 0
  1427. LastJoints = CurrentJoints
  1428. end
  1429. end
  1430. elseif animstate == 1 then
  1431. if keyframe == -1 then
  1432. local JointTargets={}
  1433. if not attacking then
  1434. JointTargets={
  1435. orig1*CFrame.Angles(math.rad(5),0,0);
  1436. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1437. orig3*CFrame.Angles(math.rad(-25),0,0);
  1438. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1439. orig5*CFrame.Angles(0,0,math.rad(40));
  1440. orig6*CFrame.Angles(0,0,math.rad(40));
  1441. }
  1442. else
  1443. JointTargets={
  1444. orig1*CFrame.Angles(math.rad(5),0,0);
  1445. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1446. 0;
  1447. 0;
  1448. orig5*CFrame.Angles(0,0,math.rad(40));
  1449. orig6*CFrame.Angles(0,0,math.rad(40));
  1450. }
  1451. end
  1452. for p=1,#Joints do
  1453. if JointTargets[p] ~= 0 then
  1454. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10))
  1455. if attacking then
  1456. CurrentJoints={
  1457. Joints[1].C0;
  1458. Joints[2].C0;
  1459. CurrentJoints[3];
  1460. CurrentJoints[4];
  1461. Joints[5].C0;
  1462. Joints[6].C0;
  1463. }
  1464. else
  1465. CurrentJoints={
  1466. Joints[1].C0;
  1467. Joints[2].C0;
  1468. Joints[3].C0;
  1469. Joints[4].C0;
  1470. Joints[5].C0;
  1471. Joints[6].C0;
  1472. }
  1473. end
  1474. end
  1475. end
  1476. if timer >= 10 then
  1477. keyframe = 1
  1478. timer = 0
  1479. LastJoints = CurrentJoints
  1480. end
  1481. elseif keyframe == 0 then
  1482. local JointTargets={}
  1483. if not attacking then
  1484. JointTargets={
  1485. orig1*CFrame.Angles(math.rad(5),0,0);
  1486. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1487. orig3*CFrame.Angles(math.rad(-25),0,0);
  1488. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1489. orig5*CFrame.Angles(0,0,math.rad(40));
  1490. orig6*CFrame.Angles(0,0,math.rad(40));
  1491. }
  1492. else
  1493. JointTargets={
  1494. orig1*CFrame.Angles(math.rad(5),0,0);
  1495. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1496. 0;
  1497. 0;
  1498. orig5*CFrame.Angles(0,0,math.rad(40));
  1499. orig6*CFrame.Angles(0,0,math.rad(40));
  1500. }
  1501. end
  1502. for p=1,#Joints do
  1503. if JointTargets[p] ~= 0 then
  1504. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/18))
  1505. if attacking then
  1506. CurrentJoints={
  1507. Joints[1].C0;
  1508. Joints[2].C0;
  1509. CurrentJoints[3];
  1510. CurrentJoints[4];
  1511. Joints[5].C0;
  1512. Joints[6].C0;
  1513. }
  1514. else
  1515. CurrentJoints={
  1516. Joints[1].C0;
  1517. Joints[2].C0;
  1518. Joints[3].C0;
  1519. Joints[4].C0;
  1520. Joints[5].C0;
  1521. Joints[6].C0;
  1522. }
  1523. end
  1524. end
  1525. end
  1526. if timer >= 18 then
  1527. wait(0.1)
  1528. keyframe = 1
  1529. timer = 0
  1530. LastJoints = CurrentJoints
  1531. end
  1532. elseif keyframe == 1 then
  1533. local JointTargets={}
  1534. if not attacking then
  1535. JointTargets={
  1536. orig1*CFrame.Angles(math.rad(5),0,0);
  1537. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1538. orig3*CFrame.Angles(math.rad(-25),0,0);
  1539. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  1540. orig5*CFrame.Angles(0,0,math.rad(-40));
  1541. orig6*CFrame.Angles(0,0,math.rad(-40));
  1542. }
  1543. else
  1544. JointTargets={
  1545. orig1*CFrame.Angles(math.rad(5),0,0);
  1546. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1547. Joints[3].C0;
  1548. Joints[4].C0;
  1549. orig5*CFrame.Angles(0,0,math.rad(-40));
  1550. orig6*CFrame.Angles(0,0,math.rad(-40));
  1551. }
  1552. end
  1553. for p=1,#Joints do
  1554. if JointTargets[p] ~= 0 then
  1555. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/18))
  1556. if attacking then
  1557. CurrentJoints={
  1558. Joints[1].C0;
  1559. Joints[2].C0;
  1560. CurrentJoints[3];
  1561. CurrentJoints[4];
  1562. Joints[5].C0;
  1563. Joints[6].C0;
  1564. }
  1565. else
  1566. CurrentJoints={
  1567. Joints[1].C0;
  1568. Joints[2].C0;
  1569. Joints[3].C0;
  1570. Joints[4].C0;
  1571. Joints[5].C0;
  1572. Joints[6].C0;
  1573. }
  1574. end
  1575. end
  1576. end
  1577. if timer >= 18 then
  1578. wait(0.1)
  1579. keyframe = 0
  1580. timer = 0
  1581. LastJoints = CurrentJoints
  1582. end
  1583. end
  1584. elseif animstate == 2 then
  1585. if keyframe == 0 then
  1586. local JointTargets={
  1587. orig1*CFrame.new(0,0,-1)*CFrame.Angles(math.rad(120),0,0);
  1588. orig2*CFrame.Angles(math.rad(15),0,0);
  1589. 0;
  1590. 0;
  1591. orig5*CFrame.Angles(0,0,math.rad(-20));
  1592. orig6*CFrame.Angles(0,0,math.rad(20));
  1593. }
  1594.  
  1595. for p=1,#Joints do
  1596. if JointTargets[p] ~= 0 then
  1597. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10))
  1598. CurrentJoints={
  1599. Joints[1].C0;
  1600. Joints[2].C0;
  1601. CurrentJoints[3];
  1602. CurrentJoints[4];
  1603. Joints[5].C0;
  1604. Joints[6].C0;
  1605. }
  1606. end
  1607. end
  1608.  
  1609. if timer >= 10 then
  1610. keyframe = 1
  1611. timer = 0
  1612. LastJoints = CurrentJoints
  1613. roll:Play()
  1614. ammo = 6
  1615. A1.BrickColor = BrickColor.new("Toothpaste")
  1616. A2.BrickColor = BrickColor.new("Toothpaste")
  1617. A3.BrickColor = BrickColor.new("Toothpaste")
  1618. A4.BrickColor = BrickColor.new("Toothpaste")
  1619. A5.BrickColor = BrickColor.new("Toothpaste")
  1620. A6.BrickColor = BrickColor.new("Toothpaste")
  1621. end
  1622. elseif keyframe == 1 then
  1623. local JointTargets={
  1624. LastJoints[1]*CFrame.Angles(math.rad(-240),0,0);
  1625. orig2*CFrame.Angles(math.rad(-5)-math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y),0,0);
  1626. 0;
  1627. 0;
  1628. orig5*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1629. orig6*CFrame.new(0,-0.1,0)*CFrame.Angles(math.rad(-5),0,math.rad(15));
  1630. }
  1631.  
  1632. for p=1,#Joints do
  1633. if JointTargets[p] ~= 0 then
  1634. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer/10))
  1635. CurrentJoints={
  1636. Joints[1].C0;
  1637. Joints[2].C0;
  1638. CurrentJoints[3];
  1639. CurrentJoints[4];
  1640. Joints[5].C0;
  1641. Joints[6].C0;
  1642. }
  1643. end
  1644. end
  1645.  
  1646. if timer >= 10 then
  1647. animstate = -1
  1648. keyframe = -1
  1649. timer = 0
  1650. LastJoints = CurrentJoints
  1651. attacking = false
  1652. Character.Humanoid.WalkSpeed = 20
  1653. local waiter = coroutine.wrap(function()
  1654. wait(8)
  1655. cooled2 = true
  1656. end)
  1657. waiter()
  1658. end
  1659. end
  1660. end
  1661. if animstate2 == 0 then
  1662. if keyframe2 == -1 then
  1663. local JointTargets={
  1664. 0;
  1665. 0;
  1666. orig3*CFrame.new(-0.5,0,-1.3)*CFrame.Angles(0,math.rad(-85),math.rad(-115));
  1667. orig4*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(95));
  1668. 0;
  1669. 0;
  1670. }
  1671.  
  1672. local GunTargets={
  1673. origh;
  1674. origt;
  1675. }
  1676.  
  1677. for p=1,#Joints do
  1678. if JointTargets[p] ~= 0 then
  1679. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/5))
  1680. CurrentJoints={
  1681. CurrentJoints[1];
  1682. CurrentJoints[2];
  1683. Character.Torso['Left Shoulder'].C0;
  1684. Character.Torso['Right Shoulder'].C0;
  1685. CurrentJoints[5];
  1686. CurrentJoints[6];
  1687. }
  1688. end
  1689. end
  1690.  
  1691. for p=1,#GunJoints do
  1692. if GunTargets[p] ~= 0 then
  1693. GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/5))
  1694. CurrentGunJoints={
  1695. GunJoints[1].C0;
  1696. GunJoints[2].C0;
  1697. }
  1698. end
  1699. end
  1700.  
  1701. if timer2 >= 5 and not waiting then
  1702. if ammo > 0 then
  1703. waiting = true
  1704. keyframe2 = 0
  1705. timer2 = 0
  1706. LastJoints = CurrentJoints
  1707. LastGunJoints = CurrentGunJoints
  1708. else
  1709. animstate2 = -1
  1710. keyframe2 = -1
  1711. timer2 = 0
  1712. LastJoints = CurrentJoints
  1713. LastGunJoints = CurrentGunJoints
  1714. attacking = false
  1715. waiting = false
  1716. cooled1 = true
  1717. end
  1718. end
  1719. elseif keyframe2 == 0 then
  1720. if waiting then
  1721. waiting = false
  1722. gunshot:Play()
  1723. if ammo == 6 then
  1724. A2.BrickColor = BrickColor.new("Really black")
  1725. ammo = 5
  1726. elseif ammo == 5 then
  1727. A3.BrickColor = BrickColor.new("Really black")
  1728. ammo = 4
  1729. elseif ammo == 4 then
  1730. A4.BrickColor = BrickColor.new("Really black")
  1731. ammo = 3
  1732. elseif ammo == 3 then
  1733. A5.BrickColor = BrickColor.new("Really black")
  1734. ammo = 2
  1735. elseif ammo == 2 then
  1736. A6.BrickColor = BrickColor.new("Really black")
  1737. ammo = 1
  1738. elseif ammo == 1 then
  1739. A1.BrickColor = BrickColor.new("Really black")
  1740. ammo = 0
  1741. end
  1742. local reduced = false
  1743. local r1 = math.random(1,2)
  1744. local r2 = math.random(1,2)
  1745. local f1;
  1746. local f2;
  1747. if r1 == 1 then
  1748. f1 = 1
  1749. else
  1750. f1 = -1
  1751. end
  1752. if r2 == 1 then
  1753. f2 = 1
  1754. else
  1755. f2 = -1
  1756. end
  1757.  
  1758. local ray = Ray.new((BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p,((Mouse.Hit*CFrame.new(f1*math.random(50,100)/100,f2*math.random(50,100)/100,0)).p-(BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p).unit*999)
  1759. local target, hit = workspace:FindPartOnRay(ray,Character)
  1760. local newpos = hit
  1761. local newhit = target
  1762.  
  1763. if newhit then
  1764. if (newpos-Character.HumanoidRootPart.Position).magnitude > 20 then
  1765. reduced = true
  1766. end
  1767. local dist = (newpos-Character.HumanoidRootPart.Position).magnitude
  1768. if newhit and (newhit.Parent:FindFirstChild("Humanoid") or newhit.Parent.Parent:FindFirstChild("Humanoid")) then
  1769. local hum;
  1770. if newhit.Parent.Parent:FindFirstChild("Humanoid") then
  1771. hum = newhit.Parent.Parent:FindFirstChild("Humanoid")
  1772. elseif newhit.Parent:FindFirstChild("Humanoid") then
  1773. hum = newhit.Parent:FindFirstChild("Humanoid")
  1774. end
  1775. local damage = 35
  1776. if reduced then
  1777. damage = math.floor(damage*(5/dist))
  1778. end
  1779. hum.Health = hum.Health - damage
  1780. indicate(hum.Parent:FindFirstChild("Head"),damage,0)
  1781. end
  1782. local Flash2 = Instance.new("Part", Character)
  1783. Flash2.CanCollide = false
  1784. Flash2.BrickColor = BrickColor.new(Color3.new(0,1,1))
  1785. Flash2.Anchored = true
  1786. Flash2.Position = newpos
  1787. Flash2.Transparency = 0
  1788. Flash2.Name = "flash"
  1789. Flash2.Shape = "Ball"
  1790. Flash2.Material = "Neon"
  1791. Flash2.BackSurface = "SmoothNoOutlines"
  1792. Flash2.FrontSurface = "SmoothNoOutlines"
  1793. Flash2.BottomSurface = "SmoothNoOutlines"
  1794. Flash2.TopSurface = "SmoothNoOutlines"
  1795. Flash2.LeftSurface = "SmoothNoOutlines"
  1796. Flash2.RightSurface = "SmoothNoOutlines"
  1797. Flash2.FormFactor = "Custom"
  1798. Flash2.Size = Vector3.new(0.3,0.3,0.3)
  1799. local grow2 = coroutine.wrap(function()
  1800. for i=1, 10 do
  1801. Flash2.Transparency = Flash2.Transparency + 0.1
  1802. wait(0.01)
  1803. end
  1804. Flash2:Remove()
  1805. end)
  1806. local part = Instance.new("Part", Character)
  1807. local origpos = BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p
  1808. local pos = CFrame.new((origpos+newpos)/2,newpos)
  1809. local mag = (origpos - newpos).magnitude
  1810. part.CanCollide = false
  1811. part.Anchored = true
  1812. part.FormFactor = "Custom"
  1813. part.Material = "SmoothPlastic"
  1814. part.Name = "effect"
  1815. part.Shape = "Cylinder"
  1816. part.BackSurface = "SmoothNoOutlines"
  1817. part.BottomSurface = "SmoothNoOutlines"
  1818. part.FrontSurface = "SmoothNoOutlines"
  1819. part.LeftSurface = "SmoothNoOutlines"
  1820. part.RightSurface = "SmoothNoOutlines"
  1821. part.TopSurface = "SmoothNoOutlines"
  1822. part.Transparency = 0.5
  1823. part.BrickColor = BrickColor.new(Color3.new(50,50,50))
  1824. part.Size = Vector3.new(mag,0.1,0.1)
  1825. part.CFrame = pos*CFrame.Angles(0,math.rad(90),0)
  1826. local changer = coroutine.wrap(function()
  1827. for i=1, 10 do
  1828. part.Size = part.Size + Vector3.new(0,0.01,0.01)
  1829. part.Transparency = part.Transparency + 0.05
  1830. wait()
  1831. end
  1832. part:Remove()
  1833. end)
  1834. grow2()
  1835. changer()
  1836. end
  1837. local Flash = Instance.new("Part", Character)
  1838. Flash.CanCollide = false
  1839. Flash.BrickColor = BrickColor.new(Color3.new(1,1,0))
  1840. Flash.Anchored = true
  1841. Flash.CFrame = BarrelEnd.CFrame*CFrame.new(0,-0.1,0)
  1842. Flash.Transparency = 0
  1843. Flash.Material = "Neon"
  1844. Flash.BackSurface = "SmoothNoOutlines"
  1845. Flash.FrontSurface = "SmoothNoOutlines"
  1846. Flash.BottomSurface = "SmoothNoOutlines"
  1847. Flash.TopSurface = "SmoothNoOutlines"
  1848. Flash.LeftSurface = "SmoothNoOutlines"
  1849. Flash.RightSurface = "SmoothNoOutlines"
  1850. Flash.FormFactor = "Custom"
  1851. Flash.Size = Vector3.new(1,1,1)
  1852. local mesh = Instance.new("SpecialMesh", Flash)
  1853. mesh.MeshType = "Sphere"
  1854. mesh.Scale = Vector3.new(0.4,0.4,0.4)
  1855. local grow = coroutine.wrap(function()
  1856. for i=1, 5 do
  1857. Flash.Transparency = Flash.Transparency + 0.2
  1858. mesh.Scale = mesh.Scale + Vector3.new(0,0.2,0)
  1859. wait()
  1860. end
  1861. Flash:Remove()
  1862. end)
  1863. grow()
  1864. end
  1865. local JointTargets={
  1866. 0;
  1867. 0;
  1868. orig3*CFrame.new(-0.5,0,-1.3)*CFrame.Angles(0,math.rad(-85),math.rad(-110));
  1869. orig4*CFrame.new(-0.1,-0.1,0)*CFrame.Angles(0,0,math.rad(120));
  1870. 0;
  1871. 0;
  1872. }
  1873.  
  1874. local GunTargets={
  1875. origh*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(15));
  1876. origt*CFrame.Angles(0,0,math.rad(-15));
  1877. }
  1878.  
  1879. for p=1,#Joints do
  1880. if JointTargets[p] ~= 0 then
  1881. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/5))
  1882. CurrentJoints={
  1883. CurrentJoints[1];
  1884. CurrentJoints[2];
  1885. Character.Torso['Left Shoulder'].C0;
  1886. Character.Torso['Right Shoulder'].C0;
  1887. CurrentJoints[5];
  1888. CurrentJoints[6];
  1889. }
  1890. end
  1891. end
  1892.  
  1893. for p=1,#GunJoints do
  1894. if GunTargets[p] ~= 0 then
  1895. GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/5))
  1896. CurrentGunJoints={
  1897. GunJoints[1].C0;
  1898. GunJoints[2].C0;
  1899. }
  1900. end
  1901. end
  1902.  
  1903. if timer2 >= 5 then
  1904. keyframe2 = -1
  1905. timer2 = 0
  1906. LastJoints = CurrentJoints
  1907. LastGunJoints = CurrentGunJoints
  1908. end
  1909. end
  1910. elseif animstate2 == 1 then
  1911. if keyframe2 == -1 then
  1912. reload:Play()
  1913. local tochange = {}
  1914. if ammo == 5 then
  1915. table.insert(tochange,A2)
  1916. elseif ammo == 4 then
  1917. table.insert(tochange,A2)
  1918. table.insert(tochange,A3)
  1919. elseif ammo == 3 then
  1920. table.insert(tochange,A2)
  1921. table.insert(tochange,A3)
  1922. table.insert(tochange,A4)
  1923. elseif ammo == 2 then
  1924. table.insert(tochange,A2)
  1925. table.insert(tochange,A3)
  1926. table.insert(tochange,A4)
  1927. table.insert(tochange,A5)
  1928. elseif ammo == 1 then
  1929. table.insert(tochange,A2)
  1930. table.insert(tochange,A3)
  1931. table.insert(tochange,A4)
  1932. table.insert(tochange,A5)
  1933. table.insert(tochange,A6)
  1934. elseif ammo == 0 then
  1935. table.insert(tochange,A1)
  1936. table.insert(tochange,A2)
  1937. table.insert(tochange,A3)
  1938. table.insert(tochange,A4)
  1939. table.insert(tochange,A5)
  1940. table.insert(tochange,A6)
  1941. end
  1942. local changer = coroutine.wrap(function()
  1943. for i=1, 10 do
  1944. for _,v in pairs (tochange) do
  1945. v.BrickColor = BrickColor.new(0,i/10,i/10)
  1946. end
  1947. wait(0.01)
  1948. end
  1949. end)
  1950. changer()
  1951. ammo = 6
  1952. keyframe2 = 0
  1953. timer2 = 0
  1954. elseif keyframe2 == 0 then
  1955. local JointTargets={
  1956. 0;
  1957. 0;
  1958. 0;
  1959. orig4*CFrame.new(0,0,0)*CFrame.Angles(0,0,math.rad(180));
  1960. 0;
  1961. 0;
  1962. }
  1963.  
  1964. for p=1,#Joints do
  1965. if JointTargets[p] ~= 0 then
  1966. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/30))
  1967. CurrentJoints={
  1968. CurrentJoints[1];
  1969. CurrentJoints[2];
  1970. CurrentJoints[3];
  1971. Character.Torso['Right Shoulder'].C0;
  1972. CurrentJoints[5];
  1973. CurrentJoints[6];
  1974. }
  1975. end
  1976. end
  1977.  
  1978. if timer2 >= 30 and not waiting then
  1979. waiting = true
  1980. wait(0.5)
  1981. animstate2 = -1
  1982. keyframe2 = -1
  1983. attacking = false
  1984. waiting = false
  1985. LastJoints = CurrentJoints
  1986. end
  1987. end
  1988. elseif animstate2 == 2 then
  1989. if keyframe2 == -1 then
  1990. gunshot:Play()
  1991. if ammo == 6 then
  1992. A2.BrickColor = BrickColor.new("Really black")
  1993. elseif ammo == 5 then
  1994. A3.BrickColor = BrickColor.new("Really black")
  1995. elseif ammo == 4 then
  1996. A4.BrickColor = BrickColor.new("Really black")
  1997. elseif ammo == 3 then
  1998. A5.BrickColor = BrickColor.new("Really black")
  1999. elseif ammo == 2 then
  2000. A6.BrickColor = BrickColor.new("Really black")
  2001. elseif ammo == 1 then
  2002. A1.BrickColor = BrickColor.new("Really black")
  2003. end
  2004. ammo = ammo - 1
  2005. keyframe2 = 0
  2006. timer2 = 0
  2007. local reduced = false
  2008. local ray = Ray.new((BarrelEnd.CFrame*CFrame.new(0,-0.2,0)).p,(Mouse.Hit.p-BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p).unit*999)
  2009. local target, hit = workspace:FindPartOnRay(ray,Character)
  2010. local newpos = hit
  2011. local newhit = target
  2012. if newhit then
  2013. if (newpos-Character.HumanoidRootPart.Position).magnitude > 70 then
  2014. reduced = true
  2015. end
  2016. local dist = (newpos-Character.HumanoidRootPart.Position).magnitude
  2017. if newhit and (newhit.Parent:FindFirstChild("Humanoid") or newhit.Parent.Parent:FindFirstChild("Humanoid")) then
  2018. local hum;
  2019. if newhit.Parent.Parent:FindFirstChild("Humanoid") then
  2020. hum = newhit.Parent.Parent:FindFirstChild("Humanoid")
  2021. elseif newhit.Parent:FindFirstChild("Humanoid") then
  2022. hum = newhit.Parent:FindFirstChild("Humanoid")
  2023. end
  2024. if newhit.Name == "Head" or newhit.Name == "Handle" or newhit.ClassName == "Accessory" then
  2025. local damage = 70
  2026. if reduced then
  2027. damage = math.floor(damage*(70/dist))
  2028. end
  2029. hum.Health = hum.Health - damage
  2030. indicate(hum.Parent:FindFirstChild("Head"),damage,1)
  2031. else
  2032. local damage = 35
  2033. if reduced then
  2034. damage = math.floor(damage*(70/dist))
  2035. end
  2036. hum.Health = hum.Health - damage
  2037. indicate(hum.Parent:FindFirstChild("Head"),damage,0)
  2038. end
  2039. end
  2040. local Flash2 = Instance.new("Part", Character)
  2041. Flash2.CanCollide = false
  2042. Flash2.BrickColor = BrickColor.new(Color3.new(0,1,1))
  2043. Flash2.Anchored = true
  2044. Flash2.Position = newpos
  2045. Flash2.Transparency = 0
  2046. Flash2.Name = "flash"
  2047. Flash2.Shape = "Ball"
  2048. Flash2.Material = "Neon"
  2049. Flash2.BackSurface = "SmoothNoOutlines"
  2050. Flash2.FrontSurface = "SmoothNoOutlines"
  2051. Flash2.BottomSurface = "SmoothNoOutlines"
  2052. Flash2.TopSurface = "SmoothNoOutlines"
  2053. Flash2.LeftSurface = "SmoothNoOutlines"
  2054. Flash2.RightSurface = "SmoothNoOutlines"
  2055. Flash2.FormFactor = "Custom"
  2056. Flash2.Size = Vector3.new(0.3,0.3,0.3)
  2057. local grow2 = coroutine.wrap(function()
  2058. for i=1, 10 do
  2059. Flash2.Transparency = Flash2.Transparency + 0.1
  2060. wait(0.01)
  2061. end
  2062. Flash2:Remove()
  2063. end)
  2064. local part = Instance.new("Part", Character)
  2065. local origpos = BarrelEnd.CFrame*CFrame.new(0,-0.2,0).p
  2066. local pos = CFrame.new((origpos+newpos)/2,newpos)
  2067. local mag = (origpos - newpos).magnitude
  2068. part.CanCollide = false
  2069. part.Anchored = true
  2070. part.FormFactor = "Custom"
  2071. part.Material = "SmoothPlastic"
  2072. part.Name = "effect"
  2073. part.Shape = "Cylinder"
  2074. part.BackSurface = "SmoothNoOutlines"
  2075. part.BottomSurface = "SmoothNoOutlines"
  2076. part.FrontSurface = "SmoothNoOutlines"
  2077. part.LeftSurface = "SmoothNoOutlines"
  2078. part.RightSurface = "SmoothNoOutlines"
  2079. part.TopSurface = "SmoothNoOutlines"
  2080. part.Transparency = 0.5
  2081. part.BrickColor = BrickColor.new(Color3.new(50,50,50))
  2082. part.Size = Vector3.new(mag,0.1,0.1)
  2083. part.CFrame = pos*CFrame.Angles(0,math.rad(90),0)
  2084. local changer = coroutine.wrap(function()
  2085. for i=1, 10 do
  2086. part.Size = part.Size + Vector3.new(0,0.01,0.01)
  2087. part.Transparency = part.Transparency + 0.05
  2088. wait()
  2089. end
  2090. part:Remove()
  2091. end)
  2092. grow2()
  2093. changer()
  2094. end
  2095. local Flash = Instance.new("Part", Character)
  2096. Flash.CanCollide = false
  2097. Flash.BrickColor = BrickColor.new(Color3.new(1,1,0))
  2098. Flash.Anchored = true
  2099. Flash.CFrame = BarrelEnd.CFrame*CFrame.new(0,-0.1,0)
  2100. Flash.Transparency = 0
  2101. Flash.Material = "Neon"
  2102. Flash.BackSurface = "SmoothNoOutlines"
  2103. Flash.FrontSurface = "SmoothNoOutlines"
  2104. Flash.BottomSurface = "SmoothNoOutlines"
  2105. Flash.TopSurface = "SmoothNoOutlines"
  2106. Flash.LeftSurface = "SmoothNoOutlines"
  2107. Flash.RightSurface = "SmoothNoOutlines"
  2108. Flash.FormFactor = "Custom"
  2109. Flash.Size = Vector3.new(1,1,1)
  2110. local mesh = Instance.new("SpecialMesh", Flash)
  2111. mesh.MeshType = "Sphere"
  2112. mesh.Scale = Vector3.new(0.4,0.4,0.4)
  2113. local grow = coroutine.wrap(function()
  2114. for i=1, 5 do
  2115. Flash.Transparency = Flash.Transparency + 0.2
  2116. mesh.Scale = mesh.Scale + Vector3.new(0,0.2,0)
  2117. wait()
  2118. end
  2119. Flash:Remove()
  2120. end)
  2121. grow()
  2122. elseif keyframe2 == 0 then
  2123. local JointTargets={
  2124. 0;
  2125. 0;
  2126. 0;
  2127. orig4*CFrame.new(-0.1,-0.1,0)*CFrame.Angles(0,0,math.rad(150)+math.asin((Mouse.Hit.p-Mouse.Origin.p).unit.y));
  2128. 0;
  2129. 0;
  2130. }
  2131.  
  2132. local GunTargets={
  2133. origh*CFrame.new(0,-0.2,0)*CFrame.Angles(0,0,math.rad(15));
  2134. origt*CFrame.Angles(0,0,math.rad(-15));
  2135. }
  2136. for p=1,#Joints do
  2137. if JointTargets[p] ~= 0 then
  2138. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/10))
  2139. CurrentJoints={
  2140. CurrentJoints[1];
  2141. CurrentJoints[2];
  2142. CurrentJoints[3];
  2143. Character.Torso['Right Shoulder'].C0;
  2144. CurrentJoints[5];
  2145. CurrentJoints[6];
  2146. }
  2147. end
  2148. end
  2149.  
  2150. for p=1,#GunJoints do
  2151. if GunTargets[p] ~= 0 then
  2152. GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/10))
  2153. CurrentGunJoints={
  2154. GunJoints[1].C0;
  2155. GunJoints[2].C0;
  2156. }
  2157. end
  2158. end
  2159. if timer2 >= 10 then
  2160. keyframe2 = 2
  2161. timer2 = 0
  2162. attacking = false
  2163. LastJoints = CurrentJoints
  2164. LastGunJoints = CurrentGunJoints
  2165. end
  2166. elseif keyframe2 == 2 then
  2167. local GunTargets={
  2168. origh;
  2169. origt;
  2170. }
  2171. for p=1,#GunJoints do
  2172. if GunTargets[p] ~= 0 then
  2173. GunJoints[p].C0=LastGunJoints[p]:lerp(GunTargets[p],math.sin(timer2/10))
  2174. CurrentGunJoints={
  2175. GunJoints[1].C0;
  2176. GunJoints[2].C0;
  2177. }
  2178. end
  2179. end
  2180. if timer2 >= 10 then
  2181. animstate2 = -1
  2182. keyframe2 = -1
  2183. LastGunJoints = CurrentGunJoints
  2184. local waiter = coroutine.wrap(function()
  2185. wait(0.5)
  2186. cooled1 = true
  2187. end)
  2188. waiter()
  2189. end
  2190. end
  2191. elseif animstate2 == 3 then
  2192. if keyframe2 == -1 then
  2193. local JointTargets={
  2194. 0;
  2195. 0;
  2196. orig3*CFrame.Angles(0,math.rad(-15),math.rad(-135));
  2197. 0;
  2198. 0;
  2199. 0;
  2200. }
  2201.  
  2202. for p=1,#Joints do
  2203. if JointTargets[p] ~= 0 then
  2204. Joints[p].C0=LastJoints[p]:lerp(JointTargets[p],math.sin(timer2/12))
  2205. CurrentJoints={
  2206. CurrentJoints[1];
  2207. CurrentJoints[2];
  2208. Character.Torso['Left Shoulder'].C0;
  2209. CurrentJoints[4];
  2210. CurrentJoints[5];
  2211. CurrentJoints[6];
  2212. }
  2213. end
  2214. end
  2215.  
  2216. if timer2 >= 12 and not waiting then
  2217. waiting = true
  2218. local flashpart = Instance.new("Part", Character)
  2219. flashpart.FormFactor = "Custom"
  2220. flashpart.FrontSurface = "Smooth"
  2221. flashpart.BackSurface = "Smooth"
  2222. flashpart.TopSurface = "Smooth"
  2223. flashpart.BottomSurface = "Smooth"
  2224. flashpart.LeftSurface = "Smooth"
  2225. flashpart.RightSurface = "Smooth"
  2226. flashpart.BrickColor = BrickColor.new(10/255,10/255,10/255)
  2227. flashpart.Size = Vector3.new(0.35,0.7,0.35)
  2228. flashpart.CanCollide = false
  2229. flashpart.CFrame = Character['Left Arm'].CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.random(),math.random(),math.random())
  2230. flashpart.Velocity = Character.HumanoidRootPart.CFrame.lookVector*20+Vector3.new(0,0.5,0)
  2231. wait(0.1)
  2232. local bang = coroutine.wrap(function()
  2233. local prevframe = flashpart.CFrame
  2234. local stunner = coroutine.wrap(function()
  2235. for _,v in pairs (workspace:GetChildren()) do
  2236. local torso;
  2237. if v:FindFirstChild("Torso") then
  2238. torso = v:FindFirstChild("Torso")
  2239. elseif v:FindFirstChild("UpperTorso") then
  2240. torso = v:FindFirstChild("UpperTorso")
  2241. end
  2242. if v:FindFirstChild("Humanoid") and torso and v ~= Character then
  2243. local mag = (torso.Position-prevframe.p).magnitude
  2244. if mag <= 10 then
  2245. local stunthem = coroutine.wrap(function()
  2246. local prev = v:FindFirstChild("Humanoid").WalkSpeed
  2247. local prev2 = v:FindFirstChild("Humanoid").JumpPower
  2248. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - 15
  2249. indicate(v:FindFirstChild("Head"),15,0)
  2250. v:FindFirstChild("Humanoid").WalkSpeed = 0
  2251. v:FindFirstChild("Humanoid").JumpPower = 0
  2252. wait(1)
  2253. v:FindFirstChild("Humanoid").WalkSpeed = prev
  2254. v:FindFirstChild("Humanoid").JumpPower = prev2
  2255. end)
  2256. stunthem()
  2257. end
  2258. end
  2259. end
  2260. end)
  2261. stunner()
  2262. flashpart:Remove()
  2263. local soundpart = Instance.new("Part", Character)
  2264. soundpart.Anchored = true
  2265. soundpart.FormFactor = "Custom"
  2266. soundpart.CanCollide = false
  2267. soundpart.Size = Vector3.new(0.2,0.2,0.2)
  2268. soundpart.CFrame = prevframe
  2269. soundpart.Transparency = 1
  2270. local flash = Instance.new("Sound", soundpart)
  2271. flash.Volume = 0.8
  2272. flash.SoundId = "rbxassetid://440145223"
  2273. flash:Play()
  2274. game.Debris:AddItem(soundpart,5)
  2275. for i=1, 5 do
  2276. local Flash = Instance.new("Part", Character)
  2277. Flash.CanCollide = false
  2278. Flash.BrickColor = BrickColor.new(Color3.new(1,1,0))
  2279. Flash.Anchored = true
  2280. Flash.CFrame = prevframe*CFrame.Angles(math.random(),math.random(),math.random())
  2281. Flash.Transparency = 0
  2282. Flash.Material = "Neon"
  2283. Flash.BackSurface = "SmoothNoOutlines"
  2284. Flash.FrontSurface = "SmoothNoOutlines"
  2285. Flash.BottomSurface = "SmoothNoOutlines"
  2286. Flash.TopSurface = "SmoothNoOutlines"
  2287. Flash.LeftSurface = "SmoothNoOutlines"
  2288. Flash.RightSurface = "SmoothNoOutlines"
  2289. Flash.FormFactor = "Custom"
  2290. Flash.Size = Vector3.new(1,1,1)
  2291. local mesh = Instance.new("SpecialMesh", Flash)
  2292. mesh.MeshType = "Sphere"
  2293. mesh.Scale = Vector3.new(2,2,2)
  2294. local grow = coroutine.wrap(function()
  2295. for i=1, 10 do
  2296. Flash.Transparency = Flash.Transparency + 0.1
  2297. mesh.Scale = mesh.Scale + Vector3.new(0,1,0)
  2298. wait()
  2299. end
  2300. Flash:Remove()
  2301. end)
  2302. grow()
  2303. wait()
  2304. end
  2305. end)
  2306. bang()
  2307. animstate2 = -1
  2308. keyframe2 = -1
  2309. timer2 = 0
  2310. attacking = false
  2311. waiting = false
  2312. LastJoints = CurrentJoints
  2313. local waiter = coroutine.wrap(function()
  2314. wait(6)
  2315. cooled3 = true
  2316. end)
  2317. waiter()
  2318. end
  2319. end
  2320. end
  2321. end)
  2322.  
  2323. Mouse.Button1Down:connect(function()
  2324. if ammo > 0 and not attacking and cooled1 and not waiting then
  2325. animstate2 = 2
  2326. cooled1 = false
  2327. timer2 = 0
  2328. keyframe2 = -1
  2329. attacking = true
  2330. end
  2331. end)
  2332.  
  2333. Mouse.KeyDown:connect(function(key)
  2334. if key == "r" and not attacking and ammo < 6 and not waiting and cooled1 then
  2335. animstate2 = 1
  2336. timer2 = 0
  2337. keyframe2 = -1
  2338. attacking = true
  2339. elseif key == "f" and ammo > 0 and not attacking and cooled1 and not waiting then
  2340. animstate2 = 0
  2341. cooled1 = false
  2342. timer2 = 0
  2343. keyframe2 = -1
  2344. attacking = true
  2345. elseif key == "q" and not attacking and cooled2 and not waiting and Player.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) then
  2346. animstate = 2
  2347. cooled2 = false
  2348. timer = 0
  2349. Character.Humanoid.WalkSpeed = 50
  2350. keyframe = 0
  2351. attacking = true
  2352. LastJoints = CurrentJoints
  2353. elseif key == "e" and not attacking and not waiting and cooled3 then
  2354. animstate2 = 3
  2355. cooled3 = false
  2356. timer2 = 0
  2357. keyframe2 = -1
  2358. attacking = true
  2359. end
  2360. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement