Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.90 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85. local h,t
  86. --Give the server mouse data every second frame, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. local HB = game:GetService("RunService").Heartbeat
  89. while true do
  90. if h~=Mouse.Hit or t~=Mouse.Target then
  91. h,t=Mouse.Hit,Mouse.Target
  92. Event:FireServer({isMouse=true,Target=t,Hit=h})
  93. end
  94. --Wait 2 frames
  95. for i=1,2 do
  96. HB:Wait()
  97. end
  98. end]==],script)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local RealGame = game
  103.  
  104. --Metatable for fake service
  105. local FakeService_Metatable = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then
  109. return typeof(s[k])=="function"
  110. and function(_,...)return s[k](s,...)end or s[k]
  111. end
  112. end,
  113. __newindex = function(self,k,v)
  114. local s = rawget(self,"_RealService")
  115. if s then s[k]=v end
  116. end
  117. }
  118. local function FakeService(t,RealService)
  119. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  120. return setmetatable(t,FakeService_Metatable)
  121. end
  122.  
  123. --Fake game object
  124. local FakeGame = {
  125. GetService = function(self,s)
  126. return rawget(self,s) or RealGame:GetService(s)
  127. end,
  128. Players = FakeService({
  129. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  130. },"Players"),
  131. UserInputService = FakeService(UIS,"UserInputService"),
  132. ContextActionService = FakeService(CAS,"ContextActionService"),
  133. RunService = FakeService({
  134. _btrs = {},
  135. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  136. BindToRenderStep = function(self,name,_,fun)
  137. self._btrs[name] = self.Heartbeat:Connect(fun)
  138. end,
  139. UnbindFromRenderStep = function(self,name)
  140. self._btrs[name]:Disconnect()
  141. end,
  142. },"RunService")
  143. }
  144. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  145. FakeGame.service = FakeGame.GetService
  146. FakeService(FakeGame,game)
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  149. end
  150.  
  151. function sandbox(var,func)
  152. local env = getfenv(func)
  153. local newenv = setmetatable({},{
  154. __index = function(self,k)
  155. if k=="script" then
  156. return var
  157. else
  158. return env[k]
  159. end
  160. end,
  161. })
  162. setfenv(func,newenv)
  163. return func
  164. end
  165. cors = {}
  166. mas = Instance.new("Model",game:GetService("Lighting"))
  167. Tool0 = Instance.new("Tool")
  168. Part1 = Instance.new("Part")
  169. BlockMesh2 = Instance.new("BlockMesh")
  170. Script3 = Instance.new("Script")
  171. Script4 = Instance.new("Script")
  172. Part5 = Instance.new("Part")
  173. BlockMesh6 = Instance.new("BlockMesh")
  174. Script7 = Instance.new("Script")
  175. LocalScript8 = Instance.new("LocalScript")
  176. Part9 = Instance.new("Part")
  177. CylinderMesh10 = Instance.new("CylinderMesh")
  178. Part11 = Instance.new("Part")
  179. BlockMesh12 = Instance.new("BlockMesh")
  180. Part13 = Instance.new("Part")
  181. SpecialMesh14 = Instance.new("SpecialMesh")
  182. Part15 = Instance.new("Part")
  183. BlockMesh16 = Instance.new("BlockMesh")
  184. Part17 = Instance.new("Part")
  185. BlockMesh18 = Instance.new("BlockMesh")
  186. Part19 = Instance.new("Part")
  187. BlockMesh20 = Instance.new("BlockMesh")
  188. Part21 = Instance.new("Part")
  189. BlockMesh22 = Instance.new("BlockMesh")
  190. Part23 = Instance.new("Part")
  191. SpecialMesh24 = Instance.new("SpecialMesh")
  192. Part25 = Instance.new("Part")
  193. BlockMesh26 = Instance.new("BlockMesh")
  194. Part27 = Instance.new("Part")
  195. BlockMesh28 = Instance.new("BlockMesh")
  196. Part29 = Instance.new("Part")
  197. BlockMesh30 = Instance.new("BlockMesh")
  198. Part31 = Instance.new("Part")
  199. BlockMesh32 = Instance.new("BlockMesh")
  200. Part33 = Instance.new("Part")
  201. BlockMesh34 = Instance.new("BlockMesh")
  202. Part35 = Instance.new("Part")
  203. BlockMesh36 = Instance.new("BlockMesh")
  204. Part37 = Instance.new("Part")
  205. SpecialMesh38 = Instance.new("SpecialMesh")
  206. Part39 = Instance.new("Part")
  207. BlockMesh40 = Instance.new("BlockMesh")
  208. Part41 = Instance.new("Part")
  209. BlockMesh42 = Instance.new("BlockMesh")
  210. Part43 = Instance.new("Part")
  211. BlockMesh44 = Instance.new("BlockMesh")
  212. Part45 = Instance.new("Part")
  213. BlockMesh46 = Instance.new("BlockMesh")
  214. Part47 = Instance.new("Part")
  215. BlockMesh48 = Instance.new("BlockMesh")
  216. Script49 = Instance.new("Script")
  217. Decal50 = Instance.new("Decal")
  218. Script51 = Instance.new("Script")
  219. Script52 = Instance.new("Script")
  220. Script53 = Instance.new("Script")
  221. Part54 = Instance.new("Part")
  222. BlockMesh55 = Instance.new("BlockMesh")
  223. Script56 = Instance.new("Script")
  224. Script57 = Instance.new("Script")
  225. Part58 = Instance.new("Part")
  226. CylinderMesh59 = Instance.new("CylinderMesh")
  227. Part60 = Instance.new("Part")
  228. BlockMesh61 = Instance.new("BlockMesh")
  229. Script62 = Instance.new("Script")
  230. Script63 = Instance.new("Script")
  231. Part64 = Instance.new("Part")
  232. BlockMesh65 = Instance.new("BlockMesh")
  233. Part66 = Instance.new("Part")
  234. BlockMesh67 = Instance.new("BlockMesh")
  235. Part68 = Instance.new("Part")
  236. BlockMesh69 = Instance.new("BlockMesh")
  237. Script70 = Instance.new("Script")
  238. Script71 = Instance.new("Script")
  239. Part72 = Instance.new("Part")
  240. BlockMesh73 = Instance.new("BlockMesh")
  241. Part74 = Instance.new("Part")
  242. BlockMesh75 = Instance.new("BlockMesh")
  243. Part76 = Instance.new("Part")
  244. BlockMesh77 = Instance.new("BlockMesh")
  245. Part78 = Instance.new("Part")
  246. BlockMesh79 = Instance.new("BlockMesh")
  247. Part80 = Instance.new("Part")
  248. BlockMesh81 = Instance.new("BlockMesh")
  249. Part82 = Instance.new("Part")
  250. BlockMesh83 = Instance.new("BlockMesh")
  251. Part84 = Instance.new("Part")
  252. BlockMesh85 = Instance.new("BlockMesh")
  253. Part86 = Instance.new("Part")
  254. BlockMesh87 = Instance.new("BlockMesh")
  255. Part88 = Instance.new("Part")
  256. BlockMesh89 = Instance.new("BlockMesh")
  257. Script90 = Instance.new("Script")
  258. Part91 = Instance.new("Part")
  259. SpecialMesh92 = Instance.new("SpecialMesh")
  260. Part93 = Instance.new("Part")
  261. BlockMesh94 = Instance.new("BlockMesh")
  262. Part95 = Instance.new("Part")
  263. BlockMesh96 = Instance.new("BlockMesh")
  264. Part97 = Instance.new("Part")
  265. BlockMesh98 = Instance.new("BlockMesh")
  266. Part99 = Instance.new("Part")
  267. BlockMesh100 = Instance.new("BlockMesh")
  268. Part101 = Instance.new("Part")
  269. BlockMesh102 = Instance.new("BlockMesh")
  270. Part103 = Instance.new("Part")
  271. BlockMesh104 = Instance.new("BlockMesh")
  272. Sound105 = Instance.new("Sound")
  273. Sound106 = Instance.new("Sound")
  274. Sound107 = Instance.new("Sound")
  275. Tool0.Name = "Riot Shield"
  276. Tool0.Parent = mas
  277. Tool0.Grip = CFrame.new(-0.300000012, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  278. Tool0.GripPos = Vector3.new(-0.300000012, 0, -0.5)
  279. Part1.Parent = Tool0
  280. Part1.CFrame = CFrame.new(9.33889389, 2.75785589, 16.8944397, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  281. Part1.Orientation = Vector3.new(0, 0, 180)
  282. Part1.Position = Vector3.new(9.33889389, 2.75785589, 16.8944397)
  283. Part1.Rotation = Vector3.new(0, 0, -180)
  284. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  285. Part1.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
  286. Part1.BottomSurface = Enum.SurfaceType.Smooth
  287. Part1.BrickColor = BrickColor.new("Black")
  288. Part1.TopSurface = Enum.SurfaceType.Smooth
  289. Part1.brickColor = BrickColor.new("Black")
  290. Part1.FormFactor = Enum.FormFactor.Custom
  291. Part1.formFactor = Enum.FormFactor.Custom
  292. BlockMesh2.Parent = Part1
  293. BlockMesh2.Scale = Vector3.new(1, 1, 0.5)
  294. Script3.Name = "ShieldScript"
  295. Script3.Parent = Part1
  296. table.insert(cors,sandbox(Script3,function()
  297. function ot(hit)
  298. ch = hit:GetChildren()
  299. for i = 1, #ch do
  300. if ch[i].className == "BodyVelocity" then
  301. ch[i].velocity = ch[i].velocity*-1
  302. end
  303. end
  304. if hit.Parent ~= nil then
  305. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  306. if hit.Parent ~= script.Parent.Parent then
  307. if hit.Parent:FindFirstChild("Torso") ~= nil then
  308. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  309. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  310. end
  311. hit.Parent.Humanoid.PlatformStand = true
  312. end
  313. else
  314. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  315. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  316. hit:breakJoints()
  317. if hit.Anchored == false then
  318. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  319. end
  320. end
  321. else
  322. hit:breakJoints()
  323. if hit.Anchored == false then
  324. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  325. end
  326. end
  327. end
  328. end
  329. if hit.Parent ~= nil then
  330. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  331. if hit.Parent ~= script.Parent.Parent then
  332. wait(0.5)
  333. hit.Parent.Humanoid.PlatformStand = false
  334. end
  335. end
  336. end
  337. end
  338. function remove(child)
  339. child:Remove()
  340. end
  341. script.Parent.Touched:connect(ot)
  342. script.Parent.ChildAdded:connect(remove)
  343. end))
  344. Script4.Parent = Part1
  345. table.insert(cors,sandbox(Script4,function()
  346. script.Parent.Touched:connect(function(obj)
  347. if obj.Parent:FindFirstChild("Humanoid") then
  348. obj.Parent.Humanoid.Sit = true
  349. end
  350. end)
  351. end))
  352. Part5.Parent = Tool0
  353. Part5.CFrame = CFrame.new(6.98061705, 1.24803698, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
  354. Part5.Orientation = Vector3.new(0, -28.3899994, 0)
  355. Part5.Position = Vector3.new(6.98061705, 1.24803698, 16.2127895)
  356. Part5.Rotation = Vector3.new(0, -28.3899994, 0)
  357. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  358. Part5.Transparency = 0.5
  359. Part5.Size = Vector3.new(0.5, 2.20000005, 0.200000003)
  360. Part5.BottomSurface = Enum.SurfaceType.Smooth
  361. Part5.BrickColor = BrickColor.new("Institutional white")
  362. Part5.TopSurface = Enum.SurfaceType.Smooth
  363. Part5.brickColor = BrickColor.new("Institutional white")
  364. Part5.FormFactor = Enum.FormFactor.Custom
  365. Part5.formFactor = Enum.FormFactor.Custom
  366. BlockMesh6.Parent = Part5
  367. BlockMesh6.Offset = Vector3.new(0, 0, 0.0494999997)
  368. BlockMesh6.Scale = Vector3.new(1, 1, 0)
  369. Script7.Name = "Weld"
  370. Script7.Parent = Tool0
  371. table.insert(cors,sandbox(Script7,function()
  372. local all,last = {}
  373. function scan(p)
  374. for _,v in pairs(p:GetChildren()) do
  375. if (v:IsA("BasePart")) then
  376. if (last) then
  377. local w = Instance.new("Weld")
  378. w.Part0,w.Part1 = last,v
  379. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  380. w.Parent = last
  381. end
  382. table.insert(all,v)
  383. last = v
  384. end
  385. scan(v)
  386. end
  387. end
  388. scan(script.Parent)
  389. for _,v in pairs(all) do v.Anchored = false end
  390. end))
  391. LocalScript8.Name = "Local Gui"
  392. LocalScript8.Parent = Tool0
  393. table.insert(cors,sandbox(LocalScript8,function()
  394. -------------------------------------
  395. ToolName="Riot Shield"
  396. ClipSize=1
  397. ReloadTime=0.1
  398. Firerate=.1
  399. MinSpread=0
  400. MaxSpread=0
  401. SpreadRate=0.0001
  402. BaseDamage=75
  403. automatic=false
  404. burst=false
  405. shot=false
  406. automacy = 0
  407. run = 0
  408. gaurd = 0
  409. knife = 0
  410. a = false
  411. cam = nil
  412. BarrlePos=Vector3.new(0,0,0)
  413. Cursors={""}
  414. ReloadCursor=""
  415. -------------------------------------
  416. equiped=false
  417. sp=script.Parent
  418. RayLength=2
  419. enabled=true
  420. reloading=false
  421. down=false
  422. r=game:service("RunService")
  423. last=0
  424. last2=0
  425. last3=0
  426. last4=0
  427. last5=0
  428. last6=0
  429.  
  430. Bullet=Instance.new("Part")
  431. Bullet.Name="Bullet"
  432. Bullet.BrickColor=BrickColor.new("New Yeller")
  433. Bullet.Anchored=true
  434. Bullet.CanCollide=false
  435. Bullet.Locked=true
  436. Bullet.Size=Vector3.new(1,1,1)
  437. Bullet.Transparency=1
  438. Bullet.formFactor=0
  439. Bullet.TopSurface=0
  440. Bullet.BottomSurface=0
  441. mesh=Instance.new("SpecialMesh")
  442. mesh.Parent=Bullet
  443. mesh.MeshType="Brick"
  444. mesh.Name="Mesh"
  445. mesh.Scale=Vector3.new(.15,.15,1)
  446.  
  447. function check()
  448. sp.Name=ToolName
  449. end
  450.  
  451. function computeDirection(vec)
  452. local lenSquared = vec.magnitude * vec.magnitude
  453. local invSqrt = 1 / math.sqrt(lenSquared)
  454. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  455. end
  456.  
  457. Tool = script.Parent;
  458. local arms = nil
  459. local torso = nil
  460. local welds = {}
  461.  
  462. function Equip(mouse)
  463. wait(0.01)
  464. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  465. torso = Tool.Parent:FindFirstChild("Torso")
  466. if arms ~= nil and torso ~= nil then
  467. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  468. if sh ~= nil then
  469. local yes = true
  470. if yes then
  471. yes = false
  472. sh[2].Part1 = nil
  473. weld2 = Instance.new("Weld")
  474. weld2.Part0 = torso
  475. weld2.Parent = torso
  476. weld2.Part1 = arms[2]
  477. weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
  478. welds[2] = weld2
  479. end
  480. else
  481. print("sh")
  482. end
  483. else
  484. print("arms")
  485. end
  486. end
  487.  
  488. function Unequip(mouse)
  489. if arms ~= nil and torso ~= nil then
  490. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  491. if sh ~= nil then
  492. local yes = true
  493. if yes then
  494. yes = false
  495. sh[2].Part1 = arms[2]
  496. welds[2].Parent = nil
  497. end
  498. else
  499. print("sh")
  500. end
  501. else
  502. print("arms")
  503. end
  504. end
  505. Tool.Equipped:connect(Equip)
  506. Tool.Unequipped:connect(Unequip)
  507.  
  508.  
  509. ------------------------------------------------------------------------------------Raycasting functions
  510. function cross(vector1, vector2)
  511. return Vector3.new(vector1.y * vector2.z - vector2.y * vector1.z, vector1.z * vector2.x - vector1.x * vector2.z, vector1.x * vector2.y - vector2.x * vector1.y)
  512. end
  513. function dot(vector1, vector2)
  514. return (vector1.x * vector2.x + vector1.y * vector2.y + vector1.z * vector2.z)
  515. end
  516. function getLineSphereCollide(linePoint1, lineVector, sphereCenter, radius)
  517. local a = lineVector.x * lineVector.x + lineVector.y * lineVector.y + lineVector.z * lineVector.z
  518. local b = lineVector.x * (linePoint1.x - sphereCenter.x) + lineVector.y * (linePoint1.y - sphereCenter.y) + lineVector.z * (linePoint1.z - sphereCenter.z)
  519. local c = (linePoint1.x - sphereCenter.x) * (linePoint1.x - sphereCenter.x) + (linePoint1.y - sphereCenter.y) * (linePoint1.y - sphereCenter.y) + (linePoint1.z - sphereCenter.z) * (linePoint1.z - sphereCenter.z) - radius * radius
  520. if (a > 0) and (b * b >= a * c) then
  521. local diff = math.sqrt(b * b - a * c)
  522. return ((-b - diff) / a), ((diff - b) / a)
  523. else
  524. return -1, -1
  525. end
  526. end
  527. --Returns hit, position, normal, time
  528. function raycast(model, start, vector, brickFunction)
  529. local hit, normal, time = raycastRecursive(model, start, vector, brickFunction, vector.unit, dot(start, vector.unit))
  530. if (dot(normal, vector) > 0) then
  531. normal = -normal
  532. end
  533. return hit, start + time * vector, normal.unit, time
  534. end
  535. function raycastRecursive(model, start, vector, brickFunction, unitVec, startDist)
  536. if (model.className == "Part") or (model.className == "Seat") or (model.className =="SpawnLocation") then
  537. local range = model.Size.magnitude / 2
  538. local dist = dot(model.Position, unitVec) - startDist
  539. if (dist + range > 0) and (dist - range < vector.magnitude) and ((dist * unitVec + start - model.Position).magnitude < range) and brickFunction(model) then
  540. local halfSize = model.Size / 2
  541. if (model.Shape == Enum.PartType.Ball) then
  542. local time, timeMax = getLineSphereCollide(start, vector, model.Position, halfSize.x)
  543. if (time < 1) and (time >= 0) then
  544. return model, (time * vector + start - model.Position), time
  545. else
  546. return nil, Vector3.new(0, 0, 0), 1
  547. end
  548. elseif (model.Shape == Enum.PartType.Block) then
  549. local time = 1
  550. local cf = model.CFrame - model.Position
  551. local xvec = cf * Vector3.new(1, 0, 0)
  552. local yvec = cf * Vector3.new(0, 1, 0)
  553. local zvec = cf * Vector3.new(0, 0, 1)
  554. local xspd = -dot(xvec, vector)
  555. local yspd = -dot(yvec, vector)
  556. local zspd = -dot(zvec, vector)
  557. local xmin, xmax, ymin, ymax, zmin, zmax = -1
  558. local dotProd = dot(xvec, start - model.Position)
  559. if (xspd ~= 0) then
  560. xmin = (dotProd - halfSize.x) / xspd
  561. xmax = (dotProd + halfSize.x) / xspd
  562. if (xmax < xmin) then
  563. local swap = xmin
  564. xmin = xmax
  565. xmax = swap
  566. end
  567. else
  568. if (math.abs(dotProd) < halfSize.x) then
  569. xmax = 1
  570. xmin = 0
  571. else
  572. return nil, Vector3.new(0, 0, 0), 1
  573. end
  574. end
  575. local dotProd = dot(yvec, start - model.Position)
  576. if (yspd ~= 0) then
  577. ymin = (dotProd - halfSize.y) / yspd
  578. ymax = (dotProd + halfSize.y) / yspd
  579. if (ymax < ymin) then
  580. local swap = ymin
  581. ymin = ymax
  582. ymax = swap
  583. end
  584. else
  585. if (math.abs(dotProd) < halfSize.y) then
  586. ymax = 1
  587. ymin = 0
  588. else
  589. return nil, Vector3.new(0, 0, 0), 1
  590. end
  591. end
  592. local dotProd = dot(zvec, start - model.Position)
  593. if (zspd ~= 0) then
  594. zmin = (dotProd - halfSize.z) / zspd
  595. zmax = (dotProd + halfSize.z) / zspd
  596. if (zmax < zmin) then
  597. local swap = zmin
  598. zmin = zmax
  599. zmax = swap
  600. end
  601. else
  602. if (math.abs(dotProd) < halfSize.z) then
  603. zmax = 1
  604. zmin = 0
  605. else
  606. return nil, Vector3.new(0, 0, 0), 1
  607. end
  608. end
  609. if (xmin <= ymax) and (xmax >= ymin) and (xmin <= zmax) and (xmax >= zmin) and (zmin <= ymax) and (zmax >= ymin) then
  610. local normal = xvec
  611. local min = xmin
  612. if (ymin > min) then
  613. min = ymin
  614. normal = yvec
  615. end
  616. if (zmin > min) then
  617. min = zmin
  618. normal = zvec
  619. end
  620. if (min >= 0) and (min < 1) then
  621. time = min
  622. elseif (xmax > 0) and (ymax > 0) and (zmax > 0) and (min < 0) then
  623. time = 0
  624. normal = Vector3.new(0, 0, 0)
  625. end
  626. return model, normal, time
  627. else
  628. return nil, Vector3.new(0, 0, 0), 1
  629. end
  630. else -- Cylinder
  631. local time = 1
  632. local cf = model.CFrame - model.Position
  633. local xvec = cf * Vector3.new(1, 0, 0)
  634. local xspd = -dot(xvec, vector)
  635. local xmin, xmax = -1
  636. local dotProd = dot(xvec, start - model.Position)
  637. if (xspd ~= 0) then
  638. xmin = (dotProd - halfSize.x) / xspd
  639. xmax = (dotProd + halfSize.x) / xspd
  640. if (xmax < xmin) then
  641. local swap = xmin
  642. xmin = xmax
  643. xmax = swap
  644. end
  645. else
  646. if (math.abs(dotProd) < halfSize.x) then
  647. xmax = 1
  648. xmin = 0
  649. else
  650. return nil, Vector3.new(0, 0, 0), 1
  651. end
  652. end
  653.  
  654. local relVec = cf:pointToObjectSpace(vector) * Vector3.new(0, 1, 1)
  655. local relPos = model.CFrame:pointToObjectSpace(start) * Vector3.new(0, 1, 1)
  656. local rmin, rmax = getLineSphereCollide(relPos, relVec, Vector3.new(0, 0, 0), halfSize.y)
  657. if (xmin <= rmax) and (xmax >= rmin) and (rmax > 0) then
  658. local normal = xvec
  659. local min = xmin
  660. if (rmin > min) then
  661. min = rmin
  662. normal = cf * (relPos + relVec * min)
  663. end
  664. if (min >= 0) and (min < 1) then
  665. time = min
  666. elseif (xmax > 0) and (rmax > 0) and (min < 0) then
  667. time = 0
  668. normal = Vector3.new(0, 0, 0)
  669. end
  670. return model, normal, time
  671. else
  672. return nil, Vector3.new(0, 0, 0), 1
  673. end
  674. return nil, Vector3.new(0, 0, 0), 1
  675. end
  676. end
  677. return nil, Vector3.new(0, 0, 0), 1
  678. elseif (model.className=="Model") or (model.className=="Workspace") or (model.className=="Hat") or (model.className == "Tool") then
  679. local children=model:GetChildren()
  680. local time=1
  681. local normal=Vector3.new(0, 0, 0)
  682. local hit=nil
  683. for n = 1, #children do
  684. if children[n]~= nil then
  685. local newHit, newNormal, newTime = raycastRecursive(children[n], start, vector, brickFunction, unitVec, startDist)
  686. if (newTime < time) then
  687. time = newTime
  688. hit = newHit
  689. normal = newNormal
  690. end
  691. end
  692. end
  693. return hit, normal, time
  694. else
  695. return nil, Vector3.new(0, 0, 0), 1
  696. end
  697. end
  698. -------------------------------------------------------------------------------
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705. function tagHumanoid(humanoid)
  706. local plr=game.Players:playerFromCharacter(sp.Parent)
  707. if plr~=nil then
  708. local tag=Instance.new("ObjectValue")
  709. tag.Value=plr
  710. tag.Name="creator"
  711. tag.Parent=humanoid
  712. delay(2,function()
  713. if tag~=nil then
  714. tag.Parent=nil
  715. end
  716. end)
  717. end
  718. end
  719.  
  720.  
  721. function reload(mouse)
  722. reloading=true
  723. while sp.Ammo.Value<ClipSize and sp.TotalAmmo.Value>0 and reloading and enabled do
  724. wait(ReloadTime/ClipSize)
  725. if reloading then
  726. check()
  727. else
  728. break
  729. end
  730. end
  731. check()
  732. mouse.Icon=Cursors[1]
  733. reloading=false
  734. end
  735.  
  736. function onKeyDown(key,mouse)
  737. key=key:lower()
  738. if key=="r" and not reloading and (sp.Ammo.Value < ClipSize) and run == 0 then
  739. reload(mouse)
  740. end
  741. if (key=="f") then
  742. if run == 0 and not reloading then
  743. enabled = false
  744. sp.Parent.Humanoid.WalkSpeed = 18
  745. weld2.C1 = CFrame.new(-1, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), 0)
  746. wait(0.05)
  747. weld2.C1 = CFrame.new(-1, -0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-50), 0)
  748. wait(0.05)
  749. weld2.C1 = CFrame.new(-1, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-30), 0)
  750. wait(0.05)
  751. weld2.C1 = CFrame.new(-1, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-10), 0) --(forwards/backwards,
  752. run = 1
  753. elseif run == 1 then
  754. enabled = true
  755. sp.Parent.Humanoid.WalkSpeed = 16
  756. weld2.C1 = CFrame.new(-1, -0.1, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-30), 0)
  757. wait(0.05)
  758. weld2.C1 = CFrame.new(-1, -0.25, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-50), 0)
  759. wait(0.05)
  760. weld2.C1 = CFrame.new(-1, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), 0)
  761. wait(0.05)
  762. weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
  763. run = 0
  764. end
  765. end
  766. end
  767.  
  768. function movecframe(p,pos)
  769. p.Parent=game.Lighting
  770. p.Position=pos
  771. p.Parent=game.Workspace
  772. end
  773.  
  774.  
  775. function fire(aim)
  776. weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-80), -0.02) --(forwards/backwards,
  777. wait(0.05)
  778. weld2.C1 = CFrame.new(-1.3, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-75), -0.04) --(forwards/backwards,
  779. wait(0.05)
  780. weld2.C1 = CFrame.new(-1.6, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), -0.06) --(forwards/backwards,
  781. wait(0.05)
  782. sp.Handle.Fire:Play()
  783. weld2.C1 = CFrame.new(-1.9, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-65), -0.08) --(forwards/backwards,
  784. t=r.Stepped:wait()
  785. last6=last5
  786. last5=last4
  787. last4=last3
  788. last3=last2
  789. last2=last
  790. last=t
  791. local bullet=Bullet:clone()
  792. local bt2=game.Lighting.BulletTexture:clone()
  793. bt2.BrickColor=BrickColor.new("Bright red")
  794. bt2.Mesh.Scale=Vector3.new(.5,.5,2)
  795. local totalDist=0
  796. Lengthdist=-RayLength/.5
  797. local startpoint=sp.Barrel.CFrame*BarrlePos
  798. local dir=(aim)-startpoint
  799. dir=computeDirection(dir)
  800. local cfrm=CFrame.new(startpoint, dir+startpoint)
  801. local hit,pos,normal,time=raycast(game.Workspace, startpoint, cfrm*Vector3.new(0,0,Lengthdist)-startpoint, function(brick)
  802. if brick.Name=="Glass" then
  803. return true
  804. elseif brick.Name=="Bullet" or brick.Name=="BulletTexture" then
  805. return false
  806. elseif brick.ClassName=="Hat" then
  807. return false
  808. elseif brick.Parent.ClassName=="Hat" then
  809. return false
  810. elseif brick:IsDescendantOf(sp.Parent) then
  811. return false
  812. elseif brick.Name=="Handle" then
  813. if brick.Parent:IsDescendantOf(sp.Parent) then
  814. return false
  815. else
  816. return true
  817. end
  818. end
  819. return true
  820. end)
  821. bullet.Parent=game.Workspace
  822. bt2.Parent=game.Workspace
  823. if hit~=nil then
  824. local humanoid=hit.Parent:FindFirstChild("Humanoid")
  825. if humanoid~=nil then
  826. local damage=math.random(BaseDamage-(BaseDamage*.25),BaseDamage+(BaseDamage*.25))
  827. if hit.Name=="Head" then
  828. damage=damage*1.25
  829. elseif hit.Name=="Torso" then
  830. else
  831. damage=damage*.75
  832. end
  833. if humanoid.Health>0 then
  834. local eplr=game.Players:playerFromCharacter(humanoid.Parent)
  835. local plr=game.Players:playerFromCharacter(sp.Parent)
  836. if eplr~=nil and plr~=nil then
  837. -- if eplr.TeamColor~=plr.TeamColor or eplr.Neutral or plr.Neutral then
  838. tagHumanoid(humanoid)
  839. humanoid:TakeDamage(damage)
  840. sp.Neutral.Texture = "http://www.roblox.com/asset/?id=53455287"
  841. sp.Friendly.Texture = "http://www.roblox.com/asset/?id=53455282"
  842. sp.Enemy.Texture = "http://www.roblox.com/asset/?id=53455310"
  843. wait(0.01)
  844. sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
  845. sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
  846. sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
  847.  
  848. -- end
  849. else
  850. tagHumanoid(humanoid)
  851. humanoid:TakeDamage(damage)
  852. sp.Neutral.Texture = "http://www.roblox.com/asset/?id=53455287"
  853. sp.Friendly.Texture = "http://www.roblox.com/asset/?id=53455282"
  854. sp.Enemy.Texture = "http://www.roblox.com/asset/?id=53455310"
  855. wait(0.01)
  856. sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
  857. sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
  858. sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
  859. end
  860. end
  861. end
  862.  
  863. if (hit.Name == "Ice") or (hit.Name == "Glass") then
  864. rand = math.random(1,5)
  865. if rand == 3 then
  866. workspace.GlassSound:play()
  867. hit:breakJoints()
  868. end
  869. end
  870. if (hit.Parent:findFirstChild("Hit")) then
  871. hit.Parent.Health.Value = hit.Parent.Health.Value - BaseDamage/20
  872. end
  873. distance=(startpoint-pos).magnitude
  874. bullet.CFrame=cfrm*CFrame.new(0,0,-distance/2)
  875. bullet.Mesh.Scale=Vector3.new(.15,.15,distance)
  876. else
  877. bullet.CFrame=cfrm*CFrame.new(0,0,-RayLength/2)
  878. bullet.Mesh.Scale=Vector3.new(.15,.15,RayLength)
  879. end
  880. if pos~=nil then
  881. bt2.CFrame=bullet.CFrame
  882. movecframe(bt2,pos)
  883. end
  884. local deb=game:FindFirstChild("Debris")
  885. if deb==nil then
  886. local debris=Instance.new("Debris")
  887. debris.Parent=game
  888. end
  889. check()
  890. game.Debris:AddItem(bullet,.05)
  891. game.Debris:AddItem(bt2,.5)
  892. end
  893.  
  894. function onButton1Up(mouse)
  895. down=false
  896. end
  897.  
  898. function onButton1Down(mouse)
  899. h=sp.Parent:FindFirstChild("Humanoid")
  900. if not enabled or reloading or down or h==nil then
  901. return
  902. end
  903. if sp.Ammo.Value>0 and h.Health>0 then
  904. --[[if sp.Ammo.Value<=0 then
  905. if not reloading then
  906. reload(mouse)
  907. end
  908. return
  909. end]]
  910. down=true
  911. enabled=false
  912. while down do
  913. if sp.Ammo.Value<=0 then
  914. break
  915. end
  916. if burst then
  917. local startpoint=sp.Barrel.CFrame*BarrlePos
  918. local mag=(mouse.Hit.p-startpoint).magnitude
  919. local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
  920. fire(mouse.Hit.p+rndm)
  921. sp.Ammo.Value=sp.Ammo.Value-1
  922. if sp.Ammo.Value<=0 then
  923. break
  924. end
  925. wait(.05)
  926. local startpoint=sp.Barrel.CFrame*BarrlePos
  927. local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude
  928. local rndm2=Vector3.new(math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2),math.random(-(.1/10)*mag2,(.1/10)*mag2))
  929. fire(mouse.Hit.p+rndm+rndm2)
  930. sp.Ammo.Value=sp.Ammo.Value-1
  931. if sp.Ammo.Value<=0 then
  932. break
  933. end
  934. wait(.05)
  935. fire(mouse.Hit.p+rndm+rndm2+rndm2)
  936. sp.Ammo.Value=sp.Ammo.Value-1
  937. elseif shot then
  938. sp.Ammo.Value=sp.Ammo.Value-1
  939. local startpoint=sp.Barrel.CFrame*BarrlePos
  940. local mag=(mouse.Hit.p-startpoint).magnitude
  941. local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
  942. fire(mouse.Hit.p+rndm)
  943. local mag2=((mouse.Hit.p+rndm)-startpoint).magnitude
  944. local rndm2=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  945. fire(mouse.Hit.p+rndm+rndm2)
  946. local rndm3=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  947. fire(mouse.Hit.p+rndm+rndm3)
  948. local rndm4=Vector3.new(math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2),math.random(-(.2/10)*mag2,(.2/10)*mag2))
  949. fire(mouse.Hit.p+rndm+rndm4)
  950. else
  951. local startpoint=sp.Barrel.CFrame*BarrlePos
  952. local mag=(mouse.Hit.p-startpoint).magnitude
  953. local rndm=Vector3.new(math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag),math.random(-(script.Parent.Spread.Value/10)*mag,(script.Parent.Spread.Value/10)*mag))
  954. fire(mouse.Hit.p+rndm)
  955. weld2.C1 = CFrame.new(-1.6, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-70), -0.06) --(forwards/backwards,
  956. wait(0.05)
  957. weld2.C1 = CFrame.new(-1.3, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-75), -0.04) --(forwards/backwards,
  958. wait(0.05)
  959. weld2.C1 = CFrame.new(-1, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(270), math.rad(-90), 0) --(forwards/backwards,
  960. end
  961. wait(Firerate)
  962. if not automatic then
  963. break
  964. end
  965. end
  966. enabled=true
  967. else
  968. sp.Handle.Trigger:Play()
  969. sp.GripForward = Vector3.new(-0.243, -0.1, -0.97)
  970. wait(0.1)
  971. sp.GripForward = Vector3.new(-0.243, 0, -0.97)
  972. end
  973. end
  974.  
  975. function onEquippedLocal(mouse)
  976. if mouse==nil then
  977. print("Mouse not found")
  978. return
  979. end
  980. mouse.Icon=Cursors[1]
  981. mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
  982. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  983. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  984. check()
  985. equiped=true
  986. if #Cursors>1 then
  987. while equiped do
  988. t=r.Stepped:wait()
  989. local action=sp.Parent:FindFirstChild("Pose")
  990. if action~=nil then
  991. if sp.Parent.Pose.Value=="Standing" then
  992. Spread=MinSpread
  993. else
  994. Spread=MinSpread+((4/10)*(MaxSpread-MinSpread))
  995. end
  996. else
  997. Spread=MinSpread
  998. end
  999. if t-last<SpreadRate then
  1000. Spread=Spread+.1*(MaxSpread-MinSpread)
  1001. end
  1002. if t-last2<SpreadRate then
  1003. Spread=Spread+.1*(MaxSpread-MinSpread)
  1004. end
  1005. if t-last3<SpreadRate then
  1006. Spread=Spread+.1*(MaxSpread-MinSpread)
  1007. end
  1008. if t-last4<SpreadRate then
  1009. Spread=Spread+.1*(MaxSpread-MinSpread)
  1010. end
  1011. if t-last5<SpreadRate then
  1012. Spread=Spread+.1*(MaxSpread-MinSpread)
  1013. end
  1014. if t-last6<SpreadRate then
  1015. Spread=Spread+.1*(MaxSpread-MinSpread)
  1016. end
  1017. if not reloading then
  1018. local percent=(Spread-MinSpread)/(MaxSpread-MinSpread)
  1019. for i=0,#Cursors-1 do
  1020. if percent>(i/(#Cursors-1))-((1/(#Cursors-1))/2) and percent<(i/(#Cursors-1))+((1/(#Cursors-1))/2) then
  1021. mouse.Icon=Cursors[i+1]
  1022. end
  1023. end
  1024. end
  1025. wait(Firerate*.9)
  1026. end
  1027. end
  1028. end
  1029. function onUnequippedLocal(mouse)
  1030. equiped=false
  1031. reloading=false
  1032. sp.Neutral.Texture = "http://www.roblox.com/asset/?id=51962380"
  1033. sp.Friendly.Texture = "http://www.roblox.com/asset/?id=51962541"
  1034. sp.Enemy.Texture = "http://www.roblox.com/asset/?id=51962534"
  1035. sp.Spread = 0
  1036. sp.Parent.Humanoid.WalkSpeed = 16
  1037. ADS = 0
  1038. run = 0
  1039. end
  1040. sp.Equipped:connect(onEquippedLocal)
  1041. sp.Unequipped:connect(onUnequippedLocal)
  1042. check()
  1043. end))
  1044. Part9.Parent = Tool0
  1045. Part9.CFrame = CFrame.new(8.59908581, 2.75808311, 16.4669476, 0.324368834, -0.94593066, -2.31046888e-05, 1.00436482e-05, -2.09812824e-05, 1, -0.94593066, -0.324368864, 2.69492193e-06)
  1046. Part9.Orientation = Vector3.new(-90, 71.0699997, 0)
  1047. Part9.Position = Vector3.new(8.59908581, 2.75808311, 16.4669476)
  1048. Part9.Rotation = Vector3.new(-90, 0, 71.0699997)
  1049. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1050. Part9.Size = Vector3.new(0.25, 0.200000003, 0.25)
  1051. Part9.BottomSurface = Enum.SurfaceType.Smooth
  1052. Part9.BrickColor = BrickColor.new("Black")
  1053. Part9.TopSurface = Enum.SurfaceType.Smooth
  1054. Part9.brickColor = BrickColor.new("Black")
  1055. Part9.FormFactor = Enum.FormFactor.Custom
  1056. Part9.formFactor = Enum.FormFactor.Custom
  1057. CylinderMesh10.Parent = Part9
  1058. CylinderMesh10.Scale = Vector3.new(3, 0.75, 3)
  1059. Part11.Parent = Tool0
  1060. Part11.CFrame = CFrame.new(6.60964584, 1.37722898, 15.9757538, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1061. Part11.Orientation = Vector3.new(0, -37.8499985, 0)
  1062. Part11.Position = Vector3.new(6.60964584, 1.37722898, 15.9757538)
  1063. Part11.Rotation = Vector3.new(0, -37.8499985, 0)
  1064. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1065. Part11.Transparency = 0.5
  1066. Part11.Size = Vector3.new(0.400000006, 2, 0.200000003)
  1067. Part11.BottomSurface = Enum.SurfaceType.Smooth
  1068. Part11.BrickColor = BrickColor.new("Institutional white")
  1069. Part11.TopSurface = Enum.SurfaceType.Smooth
  1070. Part11.brickColor = BrickColor.new("Institutional white")
  1071. Part11.FormFactor = Enum.FormFactor.Custom
  1072. Part11.formFactor = Enum.FormFactor.Custom
  1073. BlockMesh12.Parent = Part11
  1074. BlockMesh12.Offset = Vector3.new(0, 0, 0.0494999997)
  1075. BlockMesh12.Scale = Vector3.new(1, 1, 0)
  1076. Part13.Parent = Tool0
  1077. Part13.CFrame = CFrame.new(9.38881969, 0.276998013, 16.9440002, -0.000118972122, -4.31590597e-05, -1, 2.79581602e-09, -1, 4.31590597e-05, -0.99999994, 2.33890907e-09, 0.00011897213)
  1078. Part13.Orientation = Vector3.new(0, -89.9899979, 180)
  1079. Part13.Position = Vector3.new(9.38881969, 0.276998013, 16.9440002)
  1080. Part13.Rotation = Vector3.new(-180, -90, 0)
  1081. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1082. Part13.Transparency = 0.5
  1083. Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1084. Part13.BottomSurface = Enum.SurfaceType.Smooth
  1085. Part13.BrickColor = BrickColor.new("Institutional white")
  1086. Part13.TopSurface = Enum.SurfaceType.Smooth
  1087. Part13.brickColor = BrickColor.new("Institutional white")
  1088. Part13.FormFactor = Enum.FormFactor.Custom
  1089. Part13.formFactor = Enum.FormFactor.Custom
  1090. SpecialMesh14.Parent = Part13
  1091. SpecialMesh14.Scale = Vector3.new(0, 1, 1)
  1092. SpecialMesh14.MeshType = Enum.MeshType.Wedge
  1093. Part15.Parent = Tool0
  1094. Part15.CFrame = CFrame.new(7.20388412, 4.51581812, 16.3863735, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
  1095. Part15.Orientation = Vector3.new(0, -28.3899994, 0)
  1096. Part15.Position = Vector3.new(7.20388412, 4.51581812, 16.3863735)
  1097. Part15.Rotation = Vector3.new(0, -28.3899994, 0)
  1098. Part15.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1099. Part15.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1100. Part15.BottomSurface = Enum.SurfaceType.Smooth
  1101. Part15.BrickColor = BrickColor.new("Black")
  1102. Part15.TopSurface = Enum.SurfaceType.Smooth
  1103. Part15.brickColor = BrickColor.new("Black")
  1104. Part15.FormFactor = Enum.FormFactor.Custom
  1105. Part15.formFactor = Enum.FormFactor.Custom
  1106. BlockMesh16.Parent = Part15
  1107. BlockMesh16.Scale = Vector3.new(1, 0.5, 0.5)
  1108. Part17.Parent = Tool0
  1109. Part17.CFrame = CFrame.new(6.51229477, 4.38906479, 15.9003143, -0.558394432, -0.558437765, -0.613467932, 0.707113028, -0.707100511, 3.85237654e-05, -0.433805048, -0.433769733, 0.789719641)
  1110. Part17.Orientation = Vector3.new(0, -37.8400002, 135)
  1111. Part17.Position = Vector3.new(6.51229477, 4.38906479, 15.9003143)
  1112. Part17.Rotation = Vector3.new(0, -37.8400002, 135)
  1113. Part17.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1114. Part17.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  1115. Part17.BottomSurface = Enum.SurfaceType.Smooth
  1116. Part17.BrickColor = BrickColor.new("Black")
  1117. Part17.TopSurface = Enum.SurfaceType.Smooth
  1118. Part17.brickColor = BrickColor.new("Black")
  1119. Part17.FormFactor = Enum.FormFactor.Custom
  1120. Part17.formFactor = Enum.FormFactor.Custom
  1121. BlockMesh18.Parent = Part17
  1122. BlockMesh18.Scale = Vector3.new(0.5, 1, 0.5)
  1123. Part19.Parent = Tool0
  1124. Part19.CFrame = CFrame.new(6.79342222, 4.51581812, 16.1188049, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1125. Part19.Orientation = Vector3.new(0, -37.8499985, 0)
  1126. Part19.Position = Vector3.new(6.79342222, 4.51581812, 16.1188049)
  1127. Part19.Rotation = Vector3.new(0, -37.8499985, 0)
  1128. Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1129. Part19.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1130. Part19.BottomSurface = Enum.SurfaceType.Smooth
  1131. Part19.BrickColor = BrickColor.new("Black")
  1132. Part19.TopSurface = Enum.SurfaceType.Smooth
  1133. Part19.brickColor = BrickColor.new("Black")
  1134. Part19.FormFactor = Enum.FormFactor.Custom
  1135. Part19.formFactor = Enum.FormFactor.Custom
  1136. BlockMesh20.Parent = Part19
  1137. BlockMesh20.Scale = Vector3.new(1, 0.5, 0.5)
  1138. Part21.Parent = Tool0
  1139. Part21.CFrame = CFrame.new(6.68856382, 4.35524178, 16.037262, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1140. Part21.Orientation = Vector3.new(0, -37.8499985, 0)
  1141. Part21.Position = Vector3.new(6.68856382, 4.35524178, 16.037262)
  1142. Part21.Rotation = Vector3.new(0, -37.8499985, 0)
  1143. Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1144. Part21.Transparency = 0.5
  1145. Part21.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
  1146. Part21.BottomSurface = Enum.SurfaceType.Smooth
  1147. Part21.BrickColor = BrickColor.new("Institutional white")
  1148. Part21.TopSurface = Enum.SurfaceType.Smooth
  1149. Part21.brickColor = BrickColor.new("Institutional white")
  1150. Part21.FormFactor = Enum.FormFactor.Custom
  1151. Part21.formFactor = Enum.FormFactor.Custom
  1152. BlockMesh22.Parent = Part21
  1153. BlockMesh22.Offset = Vector3.new(0, 0, 0.0494999997)
  1154. BlockMesh22.Scale = Vector3.new(1, 1, 0)
  1155. Part23.Parent = Tool0
  1156. Part23.CFrame = CFrame.new(6.49990416, 4.34352112, 15.95401, -0.613507092, -0.789689183, 0.000104060433, -8.34418415e-07, -0.000131125649, -1, 0.789689183, -0.613507152, 7.97875909e-05)
  1157. Part23.Orientation = Vector3.new(90, -127.839996, 0)
  1158. Part23.Position = Vector3.new(6.49990416, 4.34352112, 15.95401)
  1159. Part23.Rotation = Vector3.new(90, 0.00999999978, 127.839996)
  1160. Part23.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1161. Part23.Transparency = 0.5
  1162. Part23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1163. Part23.BottomSurface = Enum.SurfaceType.Smooth
  1164. Part23.BrickColor = BrickColor.new("Institutional white")
  1165. Part23.TopSurface = Enum.SurfaceType.Smooth
  1166. Part23.brickColor = BrickColor.new("Institutional white")
  1167. Part23.FormFactor = Enum.FormFactor.Custom
  1168. Part23.formFactor = Enum.FormFactor.Custom
  1169. SpecialMesh24.Parent = Part23
  1170. SpecialMesh24.Scale = Vector3.new(0, 1, 1)
  1171. SpecialMesh24.MeshType = Enum.MeshType.Wedge
  1172. Part25.Parent = Tool0
  1173. Part25.CFrame = CFrame.new(6.60958481, 3.71328712, 15.9757538, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1174. Part25.Orientation = Vector3.new(0, -37.8499985, 0)
  1175. Part25.Position = Vector3.new(6.60958481, 3.71328712, 15.9757538)
  1176. Part25.Rotation = Vector3.new(0, -37.8499985, 0)
  1177. Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1178. Part25.Transparency = 0.5
  1179. Part25.Size = Vector3.new(0.400000006, 1.06050003, 0.200000003)
  1180. Part25.BottomSurface = Enum.SurfaceType.Smooth
  1181. Part25.BrickColor = BrickColor.new("Institutional white")
  1182. Part25.TopSurface = Enum.SurfaceType.Smooth
  1183. Part25.brickColor = BrickColor.new("Institutional white")
  1184. Part25.FormFactor = Enum.FormFactor.Custom
  1185. Part25.formFactor = Enum.FormFactor.Custom
  1186. BlockMesh26.Parent = Part25
  1187. BlockMesh26.Offset = Vector3.new(0, 0, 0.0494999997)
  1188. BlockMesh26.Scale = Vector3.new(1, 1, 0)
  1189. Part27.Parent = Tool0
  1190. Part27.CFrame = CFrame.new(6.98055601, 3.81801796, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
  1191. Part27.Orientation = Vector3.new(0, -28.3899994, 0)
  1192. Part27.Position = Vector3.new(6.98055601, 3.81801796, 16.2127895)
  1193. Part27.Rotation = Vector3.new(0, -28.3899994, 0)
  1194. Part27.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1195. Part27.Transparency = 0.5
  1196. Part27.Size = Vector3.new(0.5, 1.29999995, 0.200000003)
  1197. Part27.BottomSurface = Enum.SurfaceType.Smooth
  1198. Part27.BrickColor = BrickColor.new("Institutional white")
  1199. Part27.TopSurface = Enum.SurfaceType.Smooth
  1200. Part27.brickColor = BrickColor.new("Institutional white")
  1201. Part27.FormFactor = Enum.FormFactor.Custom
  1202. Part27.formFactor = Enum.FormFactor.Custom
  1203. BlockMesh28.Parent = Part27
  1204. BlockMesh28.Offset = Vector3.new(0, 0, 0.0494999997)
  1205. BlockMesh28.Scale = Vector3.new(1, 1, 0)
  1206. Part29.Parent = Tool0
  1207. Part29.CFrame = CFrame.new(8.56759167, 4.51587915, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
  1208. Part29.Orientation = Vector3.new(0, -9.46000004, 0)
  1209. Part29.Position = Vector3.new(8.56759167, 4.51587915, 16.8539124)
  1210. Part29.Rotation = Vector3.new(0, -9.46000004, 0)
  1211. Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1212. Part29.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1213. Part29.BottomSurface = Enum.SurfaceType.Smooth
  1214. Part29.BrickColor = BrickColor.new("Black")
  1215. Part29.TopSurface = Enum.SurfaceType.Smooth
  1216. Part29.brickColor = BrickColor.new("Black")
  1217. Part29.FormFactor = Enum.FormFactor.Custom
  1218. Part29.formFactor = Enum.FormFactor.Custom
  1219. BlockMesh30.Parent = Part29
  1220. BlockMesh30.Scale = Vector3.new(1, 0.5, 0.5)
  1221. Part31.Parent = Tool0
  1222. Part31.CFrame = CFrame.new(9.05599594, 4.51587915, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1223. Part31.Position = Vector3.new(9.05599594, 4.51587915, 16.8944397)
  1224. Part31.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1225. Part31.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1226. Part31.BottomSurface = Enum.SurfaceType.Smooth
  1227. Part31.BrickColor = BrickColor.new("Black")
  1228. Part31.TopSurface = Enum.SurfaceType.Smooth
  1229. Part31.brickColor = BrickColor.new("Black")
  1230. Part31.FormFactor = Enum.FormFactor.Custom
  1231. Part31.formFactor = Enum.FormFactor.Custom
  1232. BlockMesh32.Parent = Part31
  1233. BlockMesh32.Scale = Vector3.new(1, 0.5, 0.5)
  1234. Part33.Parent = Tool0
  1235. Part33.CFrame = CFrame.new(6.41219711, 3.73301911, 15.8223877, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1236. Part33.Orientation = Vector3.new(0, -37.8499985, 0)
  1237. Part33.Position = Vector3.new(6.41219711, 3.73301911, 15.8223877)
  1238. Part33.Rotation = Vector3.new(0, -37.8499985, 0)
  1239. Part33.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1240. Part33.Size = Vector3.new(0.200000003, 1.10000002, 0.200000003)
  1241. Part33.BottomSurface = Enum.SurfaceType.Smooth
  1242. Part33.BrickColor = BrickColor.new("Black")
  1243. Part33.TopSurface = Enum.SurfaceType.Smooth
  1244. Part33.brickColor = BrickColor.new("Black")
  1245. Part33.FormFactor = Enum.FormFactor.Custom
  1246. Part33.formFactor = Enum.FormFactor.Custom
  1247. BlockMesh34.Parent = Part33
  1248. BlockMesh34.Scale = Vector3.new(0.5, 1, 0.5)
  1249. Part35.Parent = Tool0
  1250. Part35.CFrame = CFrame.new(7.87203598, 4.51587915, 16.6583557, 0.945934772, 3.51197777e-05, -0.324356169, -2.50846242e-05, 1, 3.51197777e-05, 0.324356169, -2.50846242e-05, 0.945934772)
  1251. Part35.Orientation = Vector3.new(0, -18.9300003, 0)
  1252. Part35.Position = Vector3.new(7.87203598, 4.51587915, 16.6583557)
  1253. Part35.Rotation = Vector3.new(0, -18.9300003, 0)
  1254. Part35.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1255. Part35.Size = Vector3.new(0.966000438, 0.200000003, 0.200000003)
  1256. Part35.BottomSurface = Enum.SurfaceType.Smooth
  1257. Part35.BrickColor = BrickColor.new("Black")
  1258. Part35.TopSurface = Enum.SurfaceType.Smooth
  1259. Part35.brickColor = BrickColor.new("Black")
  1260. Part35.FormFactor = Enum.FormFactor.Custom
  1261. Part35.formFactor = Enum.FormFactor.Custom
  1262. BlockMesh36.Parent = Part35
  1263. BlockMesh36.Scale = Vector3.new(1, 0.5, 0.5)
  1264. Part37.Parent = Tool0
  1265. Part37.CFrame = CFrame.new(9.38881969, 4.34358978, 16.9442444, -3.26636837e-05, 4.31581502e-05, -1, 9.29513244e-10, 1, 4.31581502e-05, 0.99999994, 4.80190998e-10, -3.26636873e-05)
  1266. Part37.Orientation = Vector3.new(0, -90, 0)
  1267. Part37.Position = Vector3.new(9.38881969, 4.34358978, 16.9442444)
  1268. Part37.Rotation = Vector3.new(0, -90, 0)
  1269. Part37.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1270. Part37.Transparency = 0.5
  1271. Part37.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1272. Part37.BottomSurface = Enum.SurfaceType.Smooth
  1273. Part37.BrickColor = BrickColor.new("Institutional white")
  1274. Part37.TopSurface = Enum.SurfaceType.Smooth
  1275. Part37.brickColor = BrickColor.new("Institutional white")
  1276. Part37.FormFactor = Enum.FormFactor.Custom
  1277. Part37.formFactor = Enum.FormFactor.Custom
  1278. SpecialMesh38.Parent = Part37
  1279. SpecialMesh38.Scale = Vector3.new(0, 1, 1)
  1280. SpecialMesh38.MeshType = Enum.MeshType.Wedge
  1281. Part39.Parent = Tool0
  1282. Part39.CFrame = CFrame.new(7.9024272, 3.81981111, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
  1283. Part39.Orientation = Vector3.new(0, -18.9200001, 0)
  1284. Part39.Position = Vector3.new(7.9024272, 3.81981111, 16.5716858)
  1285. Part39.Rotation = Vector3.new(0, -18.9200001, 0)
  1286. Part39.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1287. Part39.Transparency = 0.5
  1288. Part39.Size = Vector3.new(1.5, 1.29999995, 0.200000003)
  1289. Part39.BottomSurface = Enum.SurfaceType.Smooth
  1290. Part39.BrickColor = BrickColor.new("Institutional white")
  1291. Part39.TopSurface = Enum.SurfaceType.Smooth
  1292. Part39.brickColor = BrickColor.new("Institutional white")
  1293. Part39.FormFactor = Enum.FormFactor.Custom
  1294. Part39.formFactor = Enum.FormFactor.Custom
  1295. BlockMesh40.Parent = Part39
  1296. BlockMesh40.Offset = Vector3.new(0, 0, 0.0494999997)
  1297. BlockMesh40.Scale = Vector3.new(1, 1, 0)
  1298. Part41.Parent = Tool0
  1299. Part41.CFrame = CFrame.new(9.41207027, 4.38917112, 16.8944397, -0.707149565, 0.707063973, 7.29076783e-05, -0.707063973, -0.707149565, 6.32290612e-05, 9.62636259e-05, -6.83798817e-06, 1)
  1300. Part41.Orientation = Vector3.new(0, 0, -135)
  1301. Part41.Position = Vector3.new(9.41207027, 4.38917112, 16.8944397)
  1302. Part41.Rotation = Vector3.new(0, 0, -135)
  1303. Part41.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1304. Part41.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  1305. Part41.BottomSurface = Enum.SurfaceType.Smooth
  1306. Part41.BrickColor = BrickColor.new("Black")
  1307. Part41.TopSurface = Enum.SurfaceType.Smooth
  1308. Part41.brickColor = BrickColor.new("Black")
  1309. Part41.FormFactor = Enum.FormFactor.Custom
  1310. Part41.formFactor = Enum.FormFactor.Custom
  1311. BlockMesh42.Parent = Part41
  1312. BlockMesh42.Scale = Vector3.new(0.5, 1, 0.5)
  1313. Part43.Parent = Tool0
  1314. Part43.CFrame = CFrame.new(9.18886757, 4.35530376, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1315. Part43.Position = Vector3.new(9.18886757, 4.35530376, 16.8944397)
  1316. Part43.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1317. Part43.Transparency = 0.5
  1318. Part43.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
  1319. Part43.BottomSurface = Enum.SurfaceType.Smooth
  1320. Part43.BrickColor = BrickColor.new("Institutional white")
  1321. Part43.TopSurface = Enum.SurfaceType.Smooth
  1322. Part43.brickColor = BrickColor.new("Institutional white")
  1323. Part43.FormFactor = Enum.FormFactor.Custom
  1324. Part43.formFactor = Enum.FormFactor.Custom
  1325. BlockMesh44.Parent = Part43
  1326. BlockMesh44.Offset = Vector3.new(0, 0, 0.0494999997)
  1327. BlockMesh44.Scale = Vector3.new(1, 1, 0)
  1328. Part45.Parent = Tool0
  1329. Part45.CFrame = CFrame.new(9.28884411, 3.7133379, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1330. Part45.Position = Vector3.new(9.28884411, 3.7133379, 16.8944397)
  1331. Part45.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1332. Part45.Transparency = 0.5
  1333. Part45.Size = Vector3.new(0.400000006, 1.06050014, 0.200000003)
  1334. Part45.BottomSurface = Enum.SurfaceType.Smooth
  1335. Part45.BrickColor = BrickColor.new("Institutional white")
  1336. Part45.TopSurface = Enum.SurfaceType.Smooth
  1337. Part45.brickColor = BrickColor.new("Institutional white")
  1338. Part45.FormFactor = Enum.FormFactor.Custom
  1339. Part45.formFactor = Enum.FormFactor.Custom
  1340. BlockMesh46.Parent = Part45
  1341. BlockMesh46.Offset = Vector3.new(0, 0, 0.0494999997)
  1342. BlockMesh46.Scale = Vector3.new(1, 1, 0)
  1343. Part47.Name = "Barrel"
  1344. Part47.Parent = Tool0
  1345. Part47.CFrame = CFrame.new(7.9024272, 2.7580111, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
  1346. Part47.Orientation = Vector3.new(0, -18.9200001, 0)
  1347. Part47.Position = Vector3.new(7.9024272, 2.7580111, 16.5716858)
  1348. Part47.Rotation = Vector3.new(0, -18.9200001, 0)
  1349. Part47.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1350. Part47.Size = Vector3.new(1.5, 0.850000024, 0.200000003)
  1351. Part47.BottomSurface = Enum.SurfaceType.Smooth
  1352. Part47.BrickColor = BrickColor.new("Black")
  1353. Part47.TopSurface = Enum.SurfaceType.Smooth
  1354. Part47.brickColor = BrickColor.new("Black")
  1355. Part47.FormFactor = Enum.FormFactor.Custom
  1356. Part47.formFactor = Enum.FormFactor.Custom
  1357. BlockMesh48.Parent = Part47
  1358. BlockMesh48.Scale = Vector3.new(1, 1, 0.5)
  1359. Script49.Name = "ShieldScript"
  1360. Script49.Parent = Part47
  1361. table.insert(cors,sandbox(Script49,function()
  1362. function ot(hit)
  1363. ch = hit:GetChildren()
  1364. for i = 1, #ch do
  1365. if ch[i].className == "BodyVelocity" then
  1366. ch[i].velocity = ch[i].velocity*-1
  1367. end
  1368. end
  1369. if hit.Parent ~= nil then
  1370. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1371. if hit.Parent ~= script.Parent.Parent then
  1372. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1373. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1374. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1375. end
  1376. hit.Parent.Humanoid.PlatformStand = true
  1377. end
  1378. else
  1379. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  1380. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  1381. hit:breakJoints()
  1382. if hit.Anchored == false then
  1383. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1384. end
  1385. end
  1386. else
  1387. hit:breakJoints()
  1388. if hit.Anchored == false then
  1389. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1390. end
  1391. end
  1392. end
  1393. end
  1394. if hit.Parent ~= nil then
  1395. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1396. if hit.Parent ~= script.Parent.Parent then
  1397. wait(0.5)
  1398. hit.Parent.Humanoid.PlatformStand = false
  1399. end
  1400. end
  1401. end
  1402. end
  1403. function remove(child)
  1404. child:Remove()
  1405. end
  1406. script.Parent.Touched:connect(ot)
  1407. script.Parent.ChildAdded:connect(remove)
  1408. end))
  1409. Decal50.Name = "swat-logo"
  1410. Decal50.Parent = Part47
  1411. Decal50.Texture = "http://www.roblox.com/asset/?id=1032775700"
  1412. Decal50.Face = Enum.NormalId.Back
  1413. Decal50.Color3 = Color3.new(0.290196, 0.290196, 0.290196)
  1414. Script51.Name = "Touched freeze"
  1415. Script51.Parent = Part47
  1416. table.insert(cors,sandbox(Script51,function()
  1417. local frozen = false
  1418. local debounce = true
  1419. function slowdown (hit)
  1420. if hit.Parent:FindFirstChild("Humanoid") then
  1421. hit.Parent.Humanoid.WalkSpeed = 0
  1422. frozen = true
  1423. end
  1424. local hum = hit.Parent.Humanoid
  1425. function normal()
  1426. if hum.Jump then
  1427. hum.WalkSpeed = 4
  1428. end
  1429. end
  1430. hum.Changed:connect(normal)
  1431. end
  1432. script.Parent.Touched:connect(slowdown)
  1433. end))
  1434. Script52.Name = "PushPack"
  1435. Script52.Parent = Part47
  1436. table.insert(cors,sandbox(Script52,function()
  1437. door = script.Parent
  1438.  
  1439. function onTouch(hit)
  1440. if hit.Parent == nil then return end
  1441. local h = hit.Parent:FindFirstChild("Humanoid")
  1442. if h ~= nil then
  1443. hit.Parent.Torso.Velocity=door.CFrame.lookVector * 60 -- Push the Player back
  1444. end
  1445. end
  1446. door.Touched:connect(onTouch)
  1447. end))
  1448. Script53.Parent = Part47
  1449. table.insert(cors,sandbox(Script53,function()
  1450. function onTouched(hit)
  1451.  
  1452.  
  1453.  
  1454. hit:BreakJoints()
  1455.  
  1456.  
  1457.  
  1458. end
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466. connection = script.Parent.Touched:connect(onTouched)
  1467.  
  1468.  
  1469.  
  1470.  
  1471. end))
  1472. Part54.Parent = Tool0
  1473. Part54.CFrame = CFrame.new(6.98061705, 2.7580111, 16.2127895, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
  1474. Part54.Orientation = Vector3.new(0, -28.3899994, 0)
  1475. Part54.Position = Vector3.new(6.98061705, 2.7580111, 16.2127895)
  1476. Part54.Rotation = Vector3.new(0, -28.3899994, 0)
  1477. Part54.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1478. Part54.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
  1479. Part54.BottomSurface = Enum.SurfaceType.Smooth
  1480. Part54.BrickColor = BrickColor.new("Black")
  1481. Part54.TopSurface = Enum.SurfaceType.Smooth
  1482. Part54.brickColor = BrickColor.new("Black")
  1483. Part54.FormFactor = Enum.FormFactor.Custom
  1484. Part54.formFactor = Enum.FormFactor.Custom
  1485. BlockMesh55.Parent = Part54
  1486. BlockMesh55.Scale = Vector3.new(1, 1, 0.5)
  1487. Script56.Name = "ShieldScript"
  1488. Script56.Parent = Part54
  1489. table.insert(cors,sandbox(Script56,function()
  1490. function ot(hit)
  1491. ch = hit:GetChildren()
  1492. for i = 1, #ch do
  1493. if ch[i].className == "BodyVelocity" then
  1494. ch[i].velocity = ch[i].velocity*-1
  1495. end
  1496. end
  1497. if hit.Parent ~= nil then
  1498. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1499. if hit.Parent ~= script.Parent.Parent then
  1500. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1501. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1502. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1503. end
  1504. hit.Parent.Humanoid.PlatformStand = true
  1505. end
  1506. else
  1507. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  1508. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  1509. hit:breakJoints()
  1510. if hit.Anchored == false then
  1511. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1512. end
  1513. end
  1514. else
  1515. hit:breakJoints()
  1516. if hit.Anchored == false then
  1517. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1518. end
  1519. end
  1520. end
  1521. end
  1522. if hit.Parent ~= nil then
  1523. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1524. if hit.Parent ~= script.Parent.Parent then
  1525. wait(0.5)
  1526. hit.Parent.Humanoid.PlatformStand = false
  1527. end
  1528. end
  1529. end
  1530. end
  1531. function remove(child)
  1532. child:Remove()
  1533. end
  1534. script.Parent.Touched:connect(ot)
  1535. script.Parent.ChildAdded:connect(remove)
  1536. end))
  1537. Script57.Parent = Part54
  1538. table.insert(cors,sandbox(Script57,function()
  1539. script.Parent.Touched:connect(function(obj)
  1540. if obj.Parent:FindFirstChild("Humanoid") then
  1541. obj.Parent.Humanoid.Sit = true
  1542. end
  1543. end)
  1544. end))
  1545. Part58.Parent = Tool0
  1546. Part58.CFrame = CFrame.new(7.4164691, 2.7580111, 16.0614319, 0.324368834, -0.94593066, -2.31046888e-05, 1.00436482e-05, -2.09812824e-05, 1, -0.94593066, -0.324368864, 2.69492193e-06)
  1547. Part58.Orientation = Vector3.new(-90, 71.0699997, 0)
  1548. Part58.Position = Vector3.new(7.4164691, 2.7580111, 16.0614319)
  1549. Part58.Rotation = Vector3.new(-90, 0, 71.0699997)
  1550. Part58.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1551. Part58.Size = Vector3.new(0.25, 0.200000003, 0.25)
  1552. Part58.BottomSurface = Enum.SurfaceType.Smooth
  1553. Part58.BrickColor = BrickColor.new("Black")
  1554. Part58.TopSurface = Enum.SurfaceType.Smooth
  1555. Part58.brickColor = BrickColor.new("Black")
  1556. Part58.FormFactor = Enum.FormFactor.Custom
  1557. Part58.formFactor = Enum.FormFactor.Custom
  1558. CylinderMesh59.Parent = Part58
  1559. CylinderMesh59.Scale = Vector3.new(3, 0.75, 3)
  1560. Part60.Parent = Tool0
  1561. Part60.CFrame = CFrame.new(6.5701561, 2.7580111, 15.94522, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1562. Part60.Orientation = Vector3.new(0, -37.8499985, 0)
  1563. Part60.Position = Vector3.new(6.5701561, 2.7580111, 15.94522)
  1564. Part60.Rotation = Vector3.new(0, -37.8499985, 0)
  1565. Part60.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1566. Part60.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
  1567. Part60.BottomSurface = Enum.SurfaceType.Smooth
  1568. Part60.BrickColor = BrickColor.new("Black")
  1569. Part60.TopSurface = Enum.SurfaceType.Smooth
  1570. Part60.brickColor = BrickColor.new("Black")
  1571. Part60.FormFactor = Enum.FormFactor.Custom
  1572. Part60.formFactor = Enum.FormFactor.Custom
  1573. BlockMesh61.Parent = Part60
  1574. BlockMesh61.Scale = Vector3.new(1, 1, 0.5)
  1575. Script62.Name = "ShieldScript"
  1576. Script62.Parent = Part60
  1577. table.insert(cors,sandbox(Script62,function()
  1578. function ot(hit)
  1579. ch = hit:GetChildren()
  1580. for i = 1, #ch do
  1581. if ch[i].className == "BodyVelocity" then
  1582. ch[i].velocity = ch[i].velocity*-1
  1583. end
  1584. end
  1585. if hit.Parent ~= nil then
  1586. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1587. if hit.Parent ~= script.Parent.Parent then
  1588. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1589. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1590. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1591. end
  1592. hit.Parent.Humanoid.PlatformStand = true
  1593. end
  1594. else
  1595. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  1596. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  1597. hit:breakJoints()
  1598. if hit.Anchored == false then
  1599. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1600. end
  1601. end
  1602. else
  1603. hit:breakJoints()
  1604. if hit.Anchored == false then
  1605. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1606. end
  1607. end
  1608. end
  1609. end
  1610. if hit.Parent ~= nil then
  1611. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1612. if hit.Parent ~= script.Parent.Parent then
  1613. wait(0.5)
  1614. hit.Parent.Humanoid.PlatformStand = false
  1615. end
  1616. end
  1617. end
  1618. end
  1619. function remove(child)
  1620. child:Remove()
  1621. end
  1622. script.Parent.Touched:connect(ot)
  1623. script.Parent.ChildAdded:connect(remove)
  1624. end))
  1625. Script63.Parent = Part60
  1626. table.insert(cors,sandbox(Script63,function()
  1627. script.Parent.Touched:connect(function(obj)
  1628. if obj.Parent:FindFirstChild("Humanoid") then
  1629. obj.Parent.Humanoid.Sit = true
  1630. end
  1631. end)
  1632. end))
  1633. Part64.Parent = Tool0
  1634. Part64.CFrame = CFrame.new(8.85048962, 3.81807303, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
  1635. Part64.Orientation = Vector3.new(0, -9.46000004, 0)
  1636. Part64.Position = Vector3.new(8.85048962, 3.81807303, 16.8539124)
  1637. Part64.Rotation = Vector3.new(0, -9.46000004, 0)
  1638. Part64.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1639. Part64.Transparency = 0.5
  1640. Part64.Size = Vector3.new(0.5, 1.29999995, 0.200000003)
  1641. Part64.BottomSurface = Enum.SurfaceType.Smooth
  1642. Part64.BrickColor = BrickColor.new("Institutional white")
  1643. Part64.TopSurface = Enum.SurfaceType.Smooth
  1644. Part64.brickColor = BrickColor.new("Institutional white")
  1645. Part64.FormFactor = Enum.FormFactor.Custom
  1646. Part64.formFactor = Enum.FormFactor.Custom
  1647. BlockMesh65.Parent = Part64
  1648. BlockMesh65.Offset = Vector3.new(0, 0, 0.0494999997)
  1649. BlockMesh65.Scale = Vector3.new(1, 1, 0)
  1650. Part66.Parent = Tool0
  1651. Part66.CFrame = CFrame.new(9.53884411, 3.73312306, 16.8944397, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1652. Part66.Position = Vector3.new(9.53884411, 3.73312306, 16.8944397)
  1653. Part66.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1654. Part66.Size = Vector3.new(0.200000003, 1.10000002, 0.200000003)
  1655. Part66.BottomSurface = Enum.SurfaceType.Smooth
  1656. Part66.BrickColor = BrickColor.new("Black")
  1657. Part66.TopSurface = Enum.SurfaceType.Smooth
  1658. Part66.brickColor = BrickColor.new("Black")
  1659. Part66.FormFactor = Enum.FormFactor.Custom
  1660. Part66.formFactor = Enum.FormFactor.Custom
  1661. BlockMesh67.Parent = Part66
  1662. BlockMesh67.Scale = Vector3.new(0.5, 1, 0.5)
  1663. Part68.Parent = Tool0
  1664. Part68.CFrame = CFrame.new(8.85048962, 2.75808311, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
  1665. Part68.Orientation = Vector3.new(0, -9.46000004, 0)
  1666. Part68.Position = Vector3.new(8.85048962, 2.75808311, 16.8539124)
  1667. Part68.Rotation = Vector3.new(0, -9.46000004, 0)
  1668. Part68.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1669. Part68.Size = Vector3.new(0.5, 0.850000024, 0.200000003)
  1670. Part68.BottomSurface = Enum.SurfaceType.Smooth
  1671. Part68.BrickColor = BrickColor.new("Black")
  1672. Part68.TopSurface = Enum.SurfaceType.Smooth
  1673. Part68.brickColor = BrickColor.new("Black")
  1674. Part68.FormFactor = Enum.FormFactor.Custom
  1675. Part68.formFactor = Enum.FormFactor.Custom
  1676. BlockMesh69.Parent = Part68
  1677. BlockMesh69.Scale = Vector3.new(1, 1, 0.5)
  1678. Script70.Name = "ShieldScript"
  1679. Script70.Parent = Part68
  1680. table.insert(cors,sandbox(Script70,function()
  1681. function ot(hit)
  1682. ch = hit:GetChildren()
  1683. for i = 1, #ch do
  1684. if ch[i].className == "BodyVelocity" then
  1685. ch[i].velocity = ch[i].velocity*-1
  1686. end
  1687. end
  1688. if hit.Parent ~= nil then
  1689. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1690. if hit.Parent ~= script.Parent.Parent then
  1691. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1692. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1693. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1694. end
  1695. hit.Parent.Humanoid.PlatformStand = true
  1696. end
  1697. else
  1698. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  1699. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  1700. hit:breakJoints()
  1701. if hit.Anchored == false then
  1702. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1703. end
  1704. end
  1705. else
  1706. hit:breakJoints()
  1707. if hit.Anchored == false then
  1708. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1709. end
  1710. end
  1711. end
  1712. end
  1713. if hit.Parent ~= nil then
  1714. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1715. if hit.Parent ~= script.Parent.Parent then
  1716. wait(0.5)
  1717. hit.Parent.Humanoid.PlatformStand = false
  1718. end
  1719. end
  1720. end
  1721. end
  1722. function remove(child)
  1723. child:Remove()
  1724. end
  1725. script.Parent.Touched:connect(ot)
  1726. script.Parent.ChildAdded:connect(remove)
  1727. end))
  1728. Script71.Parent = Part68
  1729. table.insert(cors,sandbox(Script71,function()
  1730. script.Parent.Touched:connect(function(obj)
  1731. if obj.Parent:FindFirstChild("Humanoid") then
  1732. obj.Parent.Humanoid.Sit = true
  1733. end
  1734. end)
  1735. end))
  1736. Part72.Parent = Tool0
  1737. Part72.CFrame = CFrame.new(6.41222382, 1.33304703, 15.8223877, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1738. Part72.Orientation = Vector3.new(0, -37.8499985, 0)
  1739. Part72.Position = Vector3.new(6.41222382, 1.33304703, 15.8223877)
  1740. Part72.Rotation = Vector3.new(0, -37.8499985, 0)
  1741. Part72.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1742. Part72.Size = Vector3.new(0.200000003, 2, 0.200000003)
  1743. Part72.BottomSurface = Enum.SurfaceType.Smooth
  1744. Part72.BrickColor = BrickColor.new("Black")
  1745. Part72.TopSurface = Enum.SurfaceType.Smooth
  1746. Part72.brickColor = BrickColor.new("Black")
  1747. Part72.FormFactor = Enum.FormFactor.Custom
  1748. Part72.formFactor = Enum.FormFactor.Custom
  1749. BlockMesh73.Parent = Part72
  1750. BlockMesh73.Scale = Vector3.new(0.5, 1, 0.5)
  1751. Part74.Parent = Tool0
  1752. Part74.CFrame = CFrame.new(9.18898773, 0.265202999, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1753. Part74.Position = Vector3.new(9.18898773, 0.265202999, 16.8941956)
  1754. Part74.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1755. Part74.Transparency = 0.5
  1756. Part74.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
  1757. Part74.BottomSurface = Enum.SurfaceType.Smooth
  1758. Part74.BrickColor = BrickColor.new("Institutional white")
  1759. Part74.TopSurface = Enum.SurfaceType.Smooth
  1760. Part74.brickColor = BrickColor.new("Institutional white")
  1761. Part74.FormFactor = Enum.FormFactor.Custom
  1762. Part74.formFactor = Enum.FormFactor.Custom
  1763. BlockMesh75.Parent = Part74
  1764. BlockMesh75.Offset = Vector3.new(0, 0, 0.0494999997)
  1765. BlockMesh75.Scale = Vector3.new(1, 1, 0)
  1766. Part76.Parent = Tool0
  1767. Part76.CFrame = CFrame.new(9.41219616, 0.226872995, 16.8941956, -1.09672546e-05, -0.707021356, -0.707198203, -9.6231699e-05, 0.707193971, -0.707021356, 1.00000417, 6.32703304e-05, -7.7009201e-05)
  1768. Part76.Orientation = Vector3.new(44.9900017, -90.0100021, -0.00999999978)
  1769. Part76.Position = Vector3.new(9.41219616, 0.226872995, 16.8941956)
  1770. Part76.Rotation = Vector3.new(90.0100021, -45.0099983, 90)
  1771. Part76.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1772. Part76.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  1773. Part76.BottomSurface = Enum.SurfaceType.Smooth
  1774. Part76.BrickColor = BrickColor.new("Black")
  1775. Part76.TopSurface = Enum.SurfaceType.Smooth
  1776. Part76.brickColor = BrickColor.new("Black")
  1777. Part76.FormFactor = Enum.FormFactor.Custom
  1778. Part76.formFactor = Enum.FormFactor.Custom
  1779. BlockMesh77.Parent = Part76
  1780. BlockMesh77.Scale = Vector3.new(0.5, 0.5, 1)
  1781. Part78.Parent = Tool0
  1782. Part78.CFrame = CFrame.new(9.05611801, 0.100060999, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1783. Part78.Position = Vector3.new(9.05611801, 0.100060999, 16.8941956)
  1784. Part78.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1785. Part78.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1786. Part78.BottomSurface = Enum.SurfaceType.Smooth
  1787. Part78.BrickColor = BrickColor.new("Black")
  1788. Part78.TopSurface = Enum.SurfaceType.Smooth
  1789. Part78.brickColor = BrickColor.new("Black")
  1790. Part78.FormFactor = Enum.FormFactor.Custom
  1791. Part78.formFactor = Enum.FormFactor.Custom
  1792. BlockMesh79.Parent = Part78
  1793. BlockMesh79.Scale = Vector3.new(1, 0.5, 0.5)
  1794. Part80.Parent = Tool0
  1795. Part80.CFrame = CFrame.new(7.87282896, 0.100019, 16.6583557, 0.945934772, 3.51197777e-05, -0.324356169, -2.50846242e-05, 1, 3.51197777e-05, 0.324356169, -2.50846242e-05, 0.945934772)
  1796. Part80.Orientation = Vector3.new(0, -18.9300003, 0)
  1797. Part80.Position = Vector3.new(7.87282896, 0.100019, 16.6583557)
  1798. Part80.Rotation = Vector3.new(0, -18.9300003, 0)
  1799. Part80.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1800. Part80.Size = Vector3.new(0.965000272, 0.200000003, 0.200000003)
  1801. Part80.BottomSurface = Enum.SurfaceType.Smooth
  1802. Part80.BrickColor = BrickColor.new("Black")
  1803. Part80.TopSurface = Enum.SurfaceType.Smooth
  1804. Part80.brickColor = BrickColor.new("Black")
  1805. Part80.FormFactor = Enum.FormFactor.Custom
  1806. Part80.formFactor = Enum.FormFactor.Custom
  1807. BlockMesh81.Parent = Part80
  1808. BlockMesh81.Scale = Vector3.new(1, 0.5, 0.5)
  1809. Part82.Parent = Tool0
  1810. Part82.CFrame = CFrame.new(8.85054779, 1.24807501, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
  1811. Part82.Orientation = Vector3.new(0, -9.46000004, 0)
  1812. Part82.Position = Vector3.new(8.85054779, 1.24807501, 16.8539124)
  1813. Part82.Rotation = Vector3.new(0, -9.46000004, 0)
  1814. Part82.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1815. Part82.Transparency = 0.5
  1816. Part82.Size = Vector3.new(0.5, 2.20000005, 0.200000003)
  1817. Part82.BottomSurface = Enum.SurfaceType.Smooth
  1818. Part82.BrickColor = BrickColor.new("Institutional white")
  1819. Part82.TopSurface = Enum.SurfaceType.Smooth
  1820. Part82.brickColor = BrickColor.new("Institutional white")
  1821. Part82.FormFactor = Enum.FormFactor.Custom
  1822. Part82.formFactor = Enum.FormFactor.Custom
  1823. BlockMesh83.Parent = Part82
  1824. BlockMesh83.Offset = Vector3.new(0, 0, 0.0494999997)
  1825. BlockMesh83.Scale = Vector3.new(1, 1, 0)
  1826. Part84.Parent = Tool0
  1827. Part84.CFrame = CFrame.new(6.68868589, 0.265172988, 16.0370178, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1828. Part84.Orientation = Vector3.new(0, -37.8499985, 0)
  1829. Part84.Position = Vector3.new(6.68868589, 0.265172988, 16.0370178)
  1830. Part84.Rotation = Vector3.new(0, -37.8499985, 0)
  1831. Part84.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1832. Part84.Transparency = 0.5
  1833. Part84.Size = Vector3.new(0.200000003, 0.223500013, 0.200000003)
  1834. Part84.BottomSurface = Enum.SurfaceType.Smooth
  1835. Part84.BrickColor = BrickColor.new("Institutional white")
  1836. Part84.TopSurface = Enum.SurfaceType.Smooth
  1837. Part84.brickColor = BrickColor.new("Institutional white")
  1838. Part84.FormFactor = Enum.FormFactor.Custom
  1839. Part84.formFactor = Enum.FormFactor.Custom
  1840. BlockMesh85.Parent = Part84
  1841. BlockMesh85.Offset = Vector3.new(0, 0, 0.0494999997)
  1842. BlockMesh85.Scale = Vector3.new(1, 1, 0)
  1843. Part86.Parent = Tool0
  1844. Part86.CFrame = CFrame.new(6.7936058, 0.100019, 16.1185608, 0.789619446, 3.87650289e-05, -0.61358273, -1.89694674e-05, 1, 3.87650289e-05, 0.61358273, -1.89694674e-05, 0.789619446)
  1845. Part86.Orientation = Vector3.new(0, -37.8499985, 0)
  1846. Part86.Position = Vector3.new(6.7936058, 0.100019, 16.1185608)
  1847. Part86.Rotation = Vector3.new(0, -37.8499985, 0)
  1848. Part86.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1849. Part86.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1850. Part86.BottomSurface = Enum.SurfaceType.Smooth
  1851. Part86.BrickColor = BrickColor.new("Black")
  1852. Part86.TopSurface = Enum.SurfaceType.Smooth
  1853. Part86.brickColor = BrickColor.new("Black")
  1854. Part86.FormFactor = Enum.FormFactor.Custom
  1855. Part86.formFactor = Enum.FormFactor.Custom
  1856. BlockMesh87.Parent = Part86
  1857. BlockMesh87.Scale = Vector3.new(1, 0.5, 0.5)
  1858. Part88.Parent = Tool0
  1859. Part88.CFrame = CFrame.new(7.90249205, 1.24581301, 16.5716858, 0.945954859, -3.51188464e-05, -0.324295938, 2.50855555e-05, 1, -3.51188464e-05, 0.324295938, 2.50855555e-05, 0.945954859)
  1860. Part88.Orientation = Vector3.new(0, -18.9200001, 0)
  1861. Part88.Position = Vector3.new(7.90249205, 1.24581301, 16.5716858)
  1862. Part88.Rotation = Vector3.new(0, -18.9200001, 0)
  1863. Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1864. Part88.Transparency = 0.5
  1865. Part88.Size = Vector3.new(1.5, 2.20000005, 0.200000003)
  1866. Part88.BottomSurface = Enum.SurfaceType.Smooth
  1867. Part88.BrickColor = BrickColor.new("Institutional white")
  1868. Part88.TopSurface = Enum.SurfaceType.Smooth
  1869. Part88.brickColor = BrickColor.new("Institutional white")
  1870. Part88.FormFactor = Enum.FormFactor.Custom
  1871. Part88.formFactor = Enum.FormFactor.Custom
  1872. BlockMesh89.Parent = Part88
  1873. BlockMesh89.Offset = Vector3.new(0, 0, 0.0494999997)
  1874. BlockMesh89.Scale = Vector3.new(1, 1, 0)
  1875. Script90.Name = "ShieldScript"
  1876. Script90.Parent = Part88
  1877. table.insert(cors,sandbox(Script90,function()
  1878. function ot(hit)
  1879. ch = hit:GetChildren()
  1880. for i = 1, #ch do
  1881. if ch[i].className == "BodyVelocity" then
  1882. ch[i].velocity = ch[i].velocity*-1
  1883. end
  1884. end
  1885. if hit.Parent ~= nil then
  1886. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1887. if hit.Parent ~= script.Parent.Parent then
  1888. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1889. hit.Parent.Torso.Velocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1890. hit.Parent.Torso.RotVelocity = (hit.Parent.Torso.Position - script.Parent.Position)*5
  1891. end
  1892. hit.Parent.Humanoid.PlatformStand = true
  1893. end
  1894. else
  1895. if hit.Parent.className == "Model" or hit.Parent.className == "Hat" then
  1896. if hit.Parent.Parent:FindFirstChild("Humanoid") == nil then
  1897. hit:breakJoints()
  1898. if hit.Anchored == false then
  1899. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1900. end
  1901. end
  1902. else
  1903. hit:breakJoints()
  1904. if hit.Anchored == false then
  1905. hit.Velocity = hit.Velocity*-1 + ((hit.Position - script.Parent.Position)*1000)/hit:GetMass()
  1906. end
  1907. end
  1908. end
  1909. end
  1910. if hit.Parent ~= nil then
  1911. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1912. if hit.Parent ~= script.Parent.Parent then
  1913. wait(0.5)
  1914. hit.Parent.Humanoid.PlatformStand = false
  1915. end
  1916. end
  1917. end
  1918. end
  1919. function remove(child)
  1920. child:Remove()
  1921. end
  1922. script.Parent.Touched:connect(ot)
  1923. script.Parent.ChildAdded:connect(remove)
  1924. end))
  1925. Part91.Parent = Tool0
  1926. Part91.CFrame = CFrame.new(6.50008678, 0.277143002, 15.9537659, -0.613584697, -1.39968042e-05, 0.789628863, 4.08246196e-05, -1, 1.39971562e-05, 0.789628863, 4.08247397e-05, 0.613584757)
  1927. Part91.Orientation = Vector3.new(0, 52.1500015, 180)
  1928. Part91.Position = Vector3.new(6.50008678, 0.277143002, 15.9537659)
  1929. Part91.Rotation = Vector3.new(0, 52.1500015, 180)
  1930. Part91.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1931. Part91.Transparency = 0.5
  1932. Part91.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1933. Part91.BottomSurface = Enum.SurfaceType.Smooth
  1934. Part91.BrickColor = BrickColor.new("Institutional white")
  1935. Part91.TopSurface = Enum.SurfaceType.Smooth
  1936. Part91.brickColor = BrickColor.new("Institutional white")
  1937. Part91.FormFactor = Enum.FormFactor.Custom
  1938. Part91.formFactor = Enum.FormFactor.Custom
  1939. SpecialMesh92.Parent = Part91
  1940. SpecialMesh92.Scale = Vector3.new(0, 1, 1)
  1941. SpecialMesh92.MeshType = Enum.MeshType.Wedge
  1942. Part93.Parent = Tool0
  1943. Part93.CFrame = CFrame.new(8.56777573, 0.100060999, 16.8539124, 0.986395717, 3.29302056e-05, -0.164386213, -2.78963325e-05, 1, 3.29302056e-05, 0.164386213, -2.78963325e-05, 0.986395717)
  1944. Part93.Orientation = Vector3.new(0, -9.46000004, 0)
  1945. Part93.Position = Vector3.new(8.56777573, 0.100060999, 16.8539124)
  1946. Part93.Rotation = Vector3.new(0, -9.46000004, 0)
  1947. Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1948. Part93.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  1949. Part93.BottomSurface = Enum.SurfaceType.Smooth
  1950. Part93.BrickColor = BrickColor.new("Black")
  1951. Part93.TopSurface = Enum.SurfaceType.Smooth
  1952. Part93.brickColor = BrickColor.new("Black")
  1953. Part93.FormFactor = Enum.FormFactor.Custom
  1954. Part93.formFactor = Enum.FormFactor.Custom
  1955. BlockMesh94.Parent = Part93
  1956. BlockMesh94.Scale = Vector3.new(1, 0.5, 0.5)
  1957. Part95.Parent = Tool0
  1958. Part95.CFrame = CFrame.new(6.51241684, 0.226842999, 15.900054, -0.613650262, 0.558344007, -0.558287859, -3.65348205e-05, 0.707051158, 0.70716244, 0.789577901, 0.433970869, -0.433861732)
  1959. Part95.Orientation = Vector3.new(-45, -127.849998, 0)
  1960. Part95.Position = Vector3.new(6.51241684, 0.226842999, 15.900054)
  1961. Part95.Rotation = Vector3.new(-121.529999, -33.9399986, -137.699997)
  1962. Part95.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1963. Part95.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  1964. Part95.BottomSurface = Enum.SurfaceType.Smooth
  1965. Part95.BrickColor = BrickColor.new("Black")
  1966. Part95.TopSurface = Enum.SurfaceType.Smooth
  1967. Part95.brickColor = BrickColor.new("Black")
  1968. Part95.FormFactor = Enum.FormFactor.Custom
  1969. Part95.formFactor = Enum.FormFactor.Custom
  1970. BlockMesh96.Parent = Part95
  1971. BlockMesh96.Scale = Vector3.new(0.5, 0.5, 1)
  1972. Part97.Parent = Tool0
  1973. Part97.CFrame = CFrame.new(9.28884411, 1.37706101, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1974. Part97.Position = Vector3.new(9.28884411, 1.37706101, 16.8941956)
  1975. Part97.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1976. Part97.Transparency = 0.5
  1977. Part97.Size = Vector3.new(0.400000006, 2, 0.200000003)
  1978. Part97.BottomSurface = Enum.SurfaceType.Smooth
  1979. Part97.BrickColor = BrickColor.new("Institutional white")
  1980. Part97.TopSurface = Enum.SurfaceType.Smooth
  1981. Part97.brickColor = BrickColor.new("Institutional white")
  1982. Part97.FormFactor = Enum.FormFactor.Custom
  1983. Part97.formFactor = Enum.FormFactor.Custom
  1984. BlockMesh98.Parent = Part97
  1985. BlockMesh98.Offset = Vector3.new(0, 0, 0.0494999997)
  1986. BlockMesh98.Scale = Vector3.new(1, 1, 0)
  1987. Part99.Parent = Tool0
  1988. Part99.CFrame = CFrame.new(9.53896999, 1.33308899, 16.8941956, 1, 3.05171125e-05, -3.05161811e-05, -3.05161811e-05, 1, 3.05171125e-05, 3.05171125e-05, -3.05161811e-05, 1)
  1989. Part99.Position = Vector3.new(9.53896999, 1.33308899, 16.8941956)
  1990. Part99.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1991. Part99.Size = Vector3.new(0.200000003, 2, 0.200000003)
  1992. Part99.BottomSurface = Enum.SurfaceType.Smooth
  1993. Part99.BrickColor = BrickColor.new("Black")
  1994. Part99.TopSurface = Enum.SurfaceType.Smooth
  1995. Part99.brickColor = BrickColor.new("Black")
  1996. Part99.FormFactor = Enum.FormFactor.Custom
  1997. Part99.formFactor = Enum.FormFactor.Custom
  1998. BlockMesh100.Parent = Part99
  1999. BlockMesh100.Scale = Vector3.new(0.5, 1, 0.5)
  2000. Part101.Parent = Tool0
  2001. Part101.CFrame = CFrame.new(7.2040062, 0.100019, 16.3863735, 0.879726708, 3.70690686e-05, -0.475472778, -2.21015525e-05, 1, 3.70690686e-05, 0.475472778, -2.21015525e-05, 0.879726708)
  2002. Part101.Orientation = Vector3.new(0, -28.3899994, 0)
  2003. Part101.Position = Vector3.new(7.2040062, 0.100019, 16.3863735)
  2004. Part101.Rotation = Vector3.new(0, -28.3899994, 0)
  2005. Part101.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2006. Part101.Size = Vector3.new(0.5, 0.200000003, 0.200000003)
  2007. Part101.BottomSurface = Enum.SurfaceType.Smooth
  2008. Part101.BrickColor = BrickColor.new("Black")
  2009. Part101.TopSurface = Enum.SurfaceType.Smooth
  2010. Part101.brickColor = BrickColor.new("Black")
  2011. Part101.FormFactor = Enum.FormFactor.Custom
  2012. Part101.formFactor = Enum.FormFactor.Custom
  2013. BlockMesh102.Parent = Part101
  2014. BlockMesh102.Scale = Vector3.new(1, 0.5, 0.5)
  2015. Part103.Name = "Handle"
  2016. Part103.Parent = Tool0
  2017. Part103.CFrame = CFrame.new(8.00784302, 2.7580111, 16.2640686, -0.324365765, 7.80466871e-05, -0.945931733, -2.83790778e-05, 1, 9.22390973e-05, 0.945931733, 5.67638745e-05, -0.324365765)
  2018. Part103.Orientation = Vector3.new(-0.00999999978, -108.93, 0)
  2019. Part103.Position = Vector3.new(8.00784302, 2.7580111, 16.2640686)
  2020. Part103.Rotation = Vector3.new(-179.979996, -71.0699997, -179.990005)
  2021. Part103.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2022. Part103.Transparency = 1
  2023. Part103.Size = Vector3.new(0.25, 0.25, 1.10000002)
  2024. Part103.BottomSurface = Enum.SurfaceType.Smooth
  2025. Part103.BrickColor = BrickColor.new("Black")
  2026. Part103.TopSurface = Enum.SurfaceType.Smooth
  2027. Part103.brickColor = BrickColor.new("Black")
  2028. Part103.FormFactor = Enum.FormFactor.Custom
  2029. Part103.formFactor = Enum.FormFactor.Custom
  2030. BlockMesh104.Parent = Part103
  2031. Sound105.Name = "Reload"
  2032. Sound105.Parent = Part103
  2033. Sound105.Pitch = 1.2999999523163
  2034. Sound105.PlaybackSpeed = 1.2999999523163
  2035. Sound105.SoundId = "http://www.roblox.com/asset/?version=1&id=2691591"
  2036. Sound105.Volume = 0.60000002384186
  2037. Sound106.Name = "Trigger"
  2038. Sound106.Parent = Part103
  2039. Sound106.Pitch = 2
  2040. Sound106.PlaybackSpeed = 2
  2041. Sound106.SoundId = "rbxasset://sounds//switch.wav"
  2042. Sound106.Volume = 1
  2043. Sound107.Name = "Fire"
  2044. Sound107.Parent = Part103
  2045. Sound107.Pitch = 3
  2046. Sound107.PlayOnRemove = true
  2047. Sound107.PlaybackSpeed = 3
  2048. Sound107.SoundId = "http://www.roblox.com/asset/?id=10730819"
  2049. Sound107.Volume = 1
  2050. for i,v in pairs(mas:GetChildren()) do
  2051. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  2052. pcall(function() v:MakeJoints() end)
  2053. end
  2054. mas:Destroy()
  2055. for i,v in pairs(cors) do
  2056. spawn(function()
  2057. pcall(v)
  2058. end)
  2059. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement