Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.40 KB | None | 0 0
  1. _G.ToggleOn = true
  2. _G.ToggleStealKeyBind = "z"
  3. _G.FreeCamBind = 'b'
  4. _G.FullBright = true
  5.  
  6. local Player = game.Players.LocalPlayer
  7. local Mouse = Player:GetMouse()
  8.  
  9. local oldFunc
  10. oldFunc = hookfunction(Instance.new("Player").Kick, function(self, ...)
  11. return wait(9e99)
  12. end)
  13.  
  14. --metamethod stuff:
  15. local mt = getrawmetatable(game)
  16. local old = mt.__namecall
  17.  
  18. setreadonly(mt, false)
  19.  
  20. mt.__namecall = newcclosure(function(self, ...)
  21. local method = getnamecallmethod()
  22. local args = {...}
  23. if method:lower() == "kick" then
  24. return wait(9e99)
  25. end
  26. return old(self, unpack(args))
  27. end)
  28.  
  29. --[FreeCam]--
  30. local UIS = game:GetService('UserInputService')
  31. local Camera = game.Workspace.Camera
  32.  
  33. local cam1 = 0
  34. local cam2 = 0
  35. local cam3 = 0
  36. local LockSystem = false
  37. local key1 = false
  38. local key2 = false
  39. local key3 = false
  40. local key4 = false
  41. local key5 = false
  42. local key6 = false
  43. local FreeCamSpeed = 3
  44. local Target = nil
  45.  
  46. function MoveCamera()
  47. local FcPart = Player.Character:FindFirstChild("FcPart")
  48. if LockSystem == false then
  49. repeat
  50. if Player.Character:FindFirstChild("FcPart") then
  51. local FcPartPos = FcPart.Position
  52. FcPart.CFrame = CFrame.new(Vector3.new(FcPartPos.X, FcPartPos.Y + cam3, FcPartPos.Z), Camera.CFrame.p) * CFrame.new(cam2, 0, cam1)
  53. LockSystem = true
  54. Player.Character.HumanoidRootPart.Anchored = true
  55. end
  56. game:GetService('RunService').RenderStepped:Wait()
  57. until not Player.Character:FindFirstChild("FcPart")
  58. LockSystem = false
  59. end
  60. end
  61.  
  62. UIS.InputBegan:connect(function(input)
  63. if Player.Character and Player.Character:FindFirstChild("FcPart") then
  64. if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.Up then
  65. key1 = true
  66. cam1 = FreeCamSpeed
  67. end
  68. if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Down then
  69. key2 = true
  70. cam1 = (FreeCamSpeed * -1)
  71. end
  72. if input.KeyCode == Enum.KeyCode.A or input.KeyCode == Enum.KeyCode.Left then
  73. key3 = true
  74. cam2 = FreeCamSpeed
  75. end
  76. if input.KeyCode == Enum.KeyCode.D or input.KeyCode == Enum.KeyCode.Right then
  77. key4 = true
  78. cam2 = (FreeCamSpeed * -1)
  79. end
  80. if input.KeyCode == Enum.KeyCode.E then
  81. key5 = true
  82. cam3 = FreeCamSpeed
  83. end
  84. if input.KeyCode == Enum.KeyCode.Q then
  85. key6 = true
  86. cam3 = (FreeCamSpeed * -1)
  87. end
  88. end
  89. end)
  90.  
  91. UIS.InputEnded:connect(function(input)
  92. if Player.Character and Player.Character:FindFirstChild("FcPart") then
  93. if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.Up then
  94. key1 = false
  95. if key2 == false then
  96. cam1 = 0
  97. end
  98. end
  99. if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Down then
  100. key2 = false
  101. if key1 == false then
  102. cam1 = 0
  103. end
  104. end
  105. if input.KeyCode == Enum.KeyCode.A or input.KeyCode == Enum.KeyCode.Left then
  106. key3 = false
  107. if key4 == false then
  108. cam2 = 0
  109. end
  110. end
  111. if input.KeyCode == Enum.KeyCode.D or input.KeyCode == Enum.KeyCode.Right then
  112. key4 = false
  113. if key3 == false then
  114. cam2 = 0
  115. end
  116. end
  117. if input.KeyCode == Enum.KeyCode.E then
  118. key5 = false
  119. if key6 == false then
  120. cam3 = 0
  121. end
  122. end
  123. if input.KeyCode == Enum.KeyCode.Q then
  124. key6 = false
  125. if key5 == false then
  126. cam3 = 0
  127. end
  128. end
  129. end
  130. end)
  131.  
  132. function FreeCam()
  133. if not Player.Character:FindFirstChild("FcPart") then
  134. local FcPart = Instance.new("Part", Player.Character)
  135. FcPart.CanCollide = false
  136. FcPart.Anchored = true
  137. FcPart.Transparency = 1
  138. FcPart.Size = Vector3.new(1, 1, 1)
  139. FcPart.Name = "FcPart"
  140. FcPart.CFrame = Player.Character.Head.CFrame
  141. Camera.CameraSubject = FcPart
  142. Camera.CameraType = "Custom"
  143. MoveCamera()
  144. end
  145. end
  146.  
  147. function UnFreeCam()
  148. if Player.Character:FindFirstChild("FcPart") then
  149. Player.Character.FcPart:Destroy()
  150. Camera.CameraSubject = Player.Character.Humanoid
  151. Camera.CameraType = "Custom"
  152. Player.Character.HumanoidRootPart.Anchored = false
  153. end
  154. end
  155.  
  156. local FcToggle = false
  157. Mouse.KeyDown:connect(function(key)
  158. if key == _G.FreeCamBind then
  159. if FcToggle == false then
  160. FcToggle = true
  161. FreeCam()
  162. else
  163. FcToggle = false
  164. UnFreeCam()
  165. end
  166. end
  167. end)
  168.  
  169. local TcChosen
  170. local LargeBoxChosen
  171. local MiliCrateChosen
  172. local ShitCrateChosen
  173. local BoxCrateChosen
  174. local FoodCrateChosen
  175. local MedCrateChosen
  176.  
  177. local TpLoop = false
  178.  
  179. function StealTc()
  180. if TpLoop then
  181. Player.Character.HumanoidRootPart.CFrame = TcChosen.CFrame + Vector3.new(1, 2, 1)
  182. wait(.2)
  183. for i = 1,3 do
  184. game.ReplicatedStorage.RemoteEvents.ToolCupboard:FireServer(TcChosen, 1)
  185. wait()
  186. end
  187. wait(.3)
  188. repeat game:GetService("RunService").RenderStepped:Wait()
  189. Player.Character.Humanoid:ChangeState(11)
  190. Player.Character.HumanoidRootPart.CFrame = TcChosen.CFrame + Vector3.new(1, 2, 1)
  191. game.ReplicatedStorage.StartLooting:FireServer("ToolCupboard", TcChosen.Parent)
  192. Player.Character.Humanoid:ChangeState(18)
  193. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  194. TpLoop = false
  195. end
  196. end
  197.  
  198. function StealLargeBox()
  199. if TpLoop then
  200. Player.Character.HumanoidRootPart.CFrame = LargeBoxChosen.CFrame + Vector3.new(1, 2, 1)
  201. wait()
  202. repeat game:GetService("RunService").RenderStepped:Wait()
  203. Player.Character.Humanoid:ChangeState(11)
  204. Player.Character.HumanoidRootPart.CFrame = LargeBoxChosen.CFrame + Vector3.new(0, 4, 0)
  205. game.ReplicatedStorage.StartLooting:FireServer("LargeStorageBox", LargeBoxChosen.Parent)
  206. Player.Character.Humanoid:ChangeState(18)
  207. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  208. TpLoop = false
  209. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  210. if v.Name == "LargeStorageBox" then
  211. for a,b in pairs(v:GetChildren()) do
  212. for c,d in pairs(b:GetChildren()) do
  213. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", LargeBoxChosen)
  214. end
  215. end
  216. end
  217. end
  218. end
  219. end
  220. function StealMiliCrate()
  221. if TpLoop then
  222. Player.Character.HumanoidRootPart.CFrame = MiliCrateChosen.CFrame + Vector3.new(1, 2, 1)
  223. wait()
  224. repeat game:GetService("RunService").RenderStepped:Wait()
  225. Player.Character.Humanoid:ChangeState(11)
  226. Player.Character.HumanoidRootPart.CFrame = MiliCrateChosen.CFrame + Vector3.new(0, 4, 0)
  227. game.ReplicatedStorage.StartLooting:FireServer("Container", MiliCrateChosen.Parent)
  228. Player.Character.Humanoid:ChangeState(18)
  229. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  230. TpLoop = false
  231. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  232. if v.Name == "MilitaryCrate" then
  233. for a,b in pairs(v:GetChildren()) do
  234. for c,d in pairs(b:GetChildren()) do
  235. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", MiliCrateChosen)
  236. end
  237. end
  238. end
  239. end
  240. end
  241. end
  242. function StealShitCrate()
  243. if TpLoop then
  244. Player.Character.HumanoidRootPart.CFrame = ShitCrateChosen.CFrame + Vector3.new(1, 2, 1)
  245. wait()
  246. repeat game:GetService("RunService").RenderStepped:Wait()
  247. Player.Character.Humanoid:ChangeState(11)
  248. Player.Character.HumanoidRootPart.CFrame = ShitCrateChosen.CFrame + Vector3.new(0, 4, 0)
  249. game.ReplicatedStorage.StartLooting:FireServer("Container", ShitCrateChosen.Parent)
  250. Player.Character.Humanoid:ChangeState(18)
  251. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  252. TpLoop = false
  253. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  254. if v.Name == "MilitaryCrate" then
  255. for a,b in pairs(v:GetChildren()) do
  256. for c,d in pairs(b:GetChildren()) do
  257. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", ShitCrateChosen)
  258. end
  259. end
  260. end
  261. end
  262. end
  263. end
  264. function StealFoodCrate()
  265. if TpLoop then
  266. Player.Character.HumanoidRootPart.CFrame = FoodCrateChosen.CFrame + Vector3.new(1, 2, 1)
  267. wait()
  268. repeat game:GetService("RunService").RenderStepped:Wait()
  269. Player.Character.Humanoid:ChangeState(11)
  270. Player.Character.HumanoidRootPart.CFrame = FoodCrateChosen.CFrame + Vector3.new(0, 4, 0)
  271. game.ReplicatedStorage.StartLooting:FireServer("Container", FoodCrateChosen.Parent)
  272. Player.Character.Humanoid:ChangeState(18)
  273. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  274. TpLoop = false
  275. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  276. if v.Name == "MilitaryCrate" then
  277. for a,b in pairs(v:GetChildren()) do
  278. for c,d in pairs(b:GetChildren()) do
  279. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", FoodCrateChosen)
  280. end
  281. end
  282. end
  283. end
  284. end
  285. end
  286. function StealBoxCrate()
  287. if TpLoop then
  288. Player.Character.HumanoidRootPart.CFrame = BoxCrateChosen.CFrame + Vector3.new(1, 2, 1)
  289. wait()
  290. repeat game:GetService("RunService").RenderStepped:Wait()
  291. Player.Character.Humanoid:ChangeState(11)
  292. Player.Character.HumanoidRootPart.CFrame = BoxCrateChosen.CFrame + Vector3.new(0, 4, 0)
  293. game.ReplicatedStorage.StartLooting:FireServer("Container", BoxCrateChosen.Parent)
  294. Player.Character.Humanoid:ChangeState(18)
  295. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  296. TpLoop = false
  297. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  298. if v.Name == "MilitaryCrate" then
  299. for a,b in pairs(v:GetChildren()) do
  300. for c,d in pairs(b:GetChildren()) do
  301. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", BoxCrateChosen)
  302. end
  303. end
  304. end
  305. end
  306. end
  307. end
  308. function StealMedCrate()
  309. if TpLoop then
  310. Player.Character.HumanoidRootPart.CFrame = MedCrateChosen.CFrame + Vector3.new(1, 2, 1)
  311. wait()
  312. repeat game:GetService("RunService").RenderStepped:Wait()
  313. Player.Character.Humanoid:ChangeState(11)
  314. Player.Character.HumanoidRootPart.CFrame = MedCrateChosen.CFrame + Vector3.new(0, 4, 0)
  315. game.ReplicatedStorage.StartLooting:FireServer("Container", MedCrateChosen.Parent)
  316. Player.Character.Humanoid:ChangeState(18)
  317. until game.Players.LocalPlayer.PlayerGui.MainGui.Fullscreen.Inventory.Visible == true
  318. TpLoop = false
  319. for i,v in pairs(game.ReplicatedStorage.ContainerInventories:GetChildren()) do
  320. if v.Name == "MilitaryCrate" then
  321. for a,b in pairs(v:GetChildren()) do
  322. for c,d in pairs(b:GetChildren()) do
  323. game.ReplicatedStorage.RemoteEvents.InventoryQuickEvent3:FireServer(d, b, "", MedCrateChosen)
  324. end
  325. end
  326. end
  327. end
  328. end
  329. end
  330. function StealLoot()
  331. repeat
  332. for i,v in pairs(game:GetService('Players').LocalPlayer:GetMouse().Target.Parent.Properties.Inventory:GetChildren()) do
  333. game:GetService('ReplicatedStorage').RemoteEvents.setConnectedFrame3:FireServer(v, v.ItemName.Value)
  334. end
  335. until game:GetService('Players').LocalPlayer.PlayerGui.MainGui.Inventory.Visible == false
  336. end
  337. Mouse.KeyDown:connect(function(key)
  338. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ToolCupboard" then
  339. TpLoop = true
  340. TcChosen = Mouse.Target
  341. UnFreeCam()
  342. FcToggle = false
  343. StealTc()
  344. StealLoot()
  345. end
  346. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "LargeStorageBox" then
  347. TpLoop = true
  348. LargeBoxChosen = Mouse.Target
  349. UnFreeCam()
  350. FcToggle = false
  351. StealLargeBox()
  352. StealLoot()
  353. end
  354. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "SmallStorageBox" then
  355. TpLoop = true
  356. LargeBoxChosen = Mouse.Target
  357. UnFreeCam()
  358. FcToggle = false
  359. StealLargeBox()
  360. StealLoot()
  361. end
  362. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ContainerHitBox" then
  363. TpLoop = true
  364. MiliCrateChosen = Mouse.Target
  365. UnFreeCam()
  366. FcToggle = false
  367. StealMiliCrate()
  368. StealLoot()
  369. end
  370. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ContainerHitBox" then
  371. TpLoop = true
  372. ShitCrateChosen = Mouse.Target
  373. UnFreeCam()
  374. FcToggle = false
  375. StealShitCrate()
  376. StealLoot()
  377. end
  378. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ContainerHitBox" then
  379. TpLoop = true
  380. FoodCrateChosen = Mouse.Target
  381. UnFreeCam()
  382. FcToggle = false
  383. StealFoodCrate()
  384. StealLoot()
  385. end
  386. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ContainerHitBox" then
  387. TpLoop = true
  388. BoxCrateChosen = Mouse.Target
  389. UnFreeCam()
  390. FcToggle = false
  391. StealBoxCrate()
  392. StealLoot()
  393. end
  394. if key:lower() == _G.ToggleStealKeyBind and _G.ToggleOn == true and Mouse.Target.Name == "ContainerHitBox" then
  395. TpLoop = true
  396. MedCrateChosen = Mouse.Target
  397. UnFreeCam()
  398. FcToggle = false
  399. StealMedCrate()
  400. StealLoot()
  401. end
  402. end)
  403. --[FullBright]--
  404. local runservice = game:GetService('RunService')
  405. runservice.Stepped:connect(function()
  406. if _G.FullBright == true then
  407. game:GetService('Lighting').TimeOfDay = '12:00:00'
  408. game.Lighting.FogEnd = 9999
  409. game.Lighting.Brightness = 1
  410. game.Lighting.ColorCorrection.Brightness = 0.1
  411. game.Lighting.ColorCorrection.Saturation = 0.1
  412. game.Lighting.Bloom.Intensity = 0.1
  413. end
  414. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement