Advertisement
Guest User

Nihilize H4X v2.3

a guest
Aug 17th, 2020
148,820
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.85 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3. -- Script Created by Nihilize
  4.  
  5. FavoriteColor = Color3.fromRGB(0, 0, 255) --(Red, Green, Blue) from 0 to 255
  6.  
  7. local function getGuns()
  8.     --Remington870--------------------------------------------
  9.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP) --Remington 870
  10.     ----------------------------------------------------------
  11.  
  12.     --M4A1----------------------------------------------------
  13.     if (game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId, 96651)) then
  14.         game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M4A1"].ITEMPICKUP)
  15.     else --If you don't have gamepass for M4A1 then you will get the converted AK-47
  16.         game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["AK-47"].ITEMPICKUP)
  17.         require(game.Players.LocalPlayer.Backpack:FindFirstChild("AK-47"):FindFirstChild("GunStates"))["FireRate"] = 0.09
  18.     end
  19.     ----------------------------------------------------------
  20.    
  21.     --AK-47---------------------------------------------------
  22.     if (game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players.LocalPlayer.UserId, 96651)) then
  23.         --If you don't have gamepass for M4A1 then you will not get this AK-47
  24.         game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["AK-47"].ITEMPICKUP)
  25.     end
  26.     ----------------------------------------------------------
  27.    
  28.     --M9---------------------------------------------------
  29.     game.Workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M9"].ITEMPICKUP)
  30.     if game.Players.LocalPlayer:FindFirstChild("M9") then
  31.         game.Players.LocalPlayer:FindFirstChild("M9").Parent = game.Players.LocalPlayer.Backpack
  32.     end
  33.     -------------------------------------------------------
  34. end
  35.  
  36. -- Instances:
  37.  
  38. local ScreenGui = Instance.new("ScreenGui")
  39. local Frame = Instance.new("Frame")
  40. local Title = Instance.new("TextLabel")
  41. local ObGuns = Instance.new("TextButton")
  42. local NexusTP = Instance.new("TextButton")
  43. local BackTP = Instance.new("TextButton")
  44. local BeGuardF = Instance.new("TextButton")
  45. local BeInmate = Instance.new("TextButton")
  46. local BeCriminal = Instance.new("TextButton")
  47. local BeNeutral = Instance.new("TextButton")
  48. local YardTP = Instance.new("TextButton")
  49. local CafeTP = Instance.new("TextButton")
  50. local Refresh = Instance.new("TextButton")
  51. local Respawn = Instance.new("TextButton")
  52. local BeGuard = Instance.new("TextButton")
  53. local CellsTP = Instance.new("TextButton")
  54. local Lock = Instance.new("TextButton")
  55. local ArmoryTP = Instance.new("TextButton")
  56. local ChatEnabled = true
  57. local BubblesEnabled = true
  58.  
  59. --Properties:
  60. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  61.  
  62. Frame.Parent = ScreenGui
  63. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  64. Frame.BorderColor3 = FavoriteColor
  65. Frame.BorderSizePixel = 3
  66. Frame.Position = UDim2.new(0.8, 0, 0.1, 0)
  67. Frame.Size = UDim2.new(0, 200, 0, 300)
  68. Frame.BorderMode = "Inset"
  69.  
  70. Title.Name = "Title"
  71. Title.Parent = Frame
  72. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  73. Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  74. Title.BackgroundTransparency = 1.000
  75. Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
  76. Title.Position = UDim2.new(0.5, 0, 0.0700000003, 0)
  77. Title.Size = UDim2.new(0, 180, 0, 50)
  78. Title.Font = Enum.Font.SourceSans
  79. Title.Text = "Nihilize H4X"
  80. Title.TextColor3 = FavoriteColor
  81. Title.TextScaled = true
  82. Title.TextSize = 30.000
  83. Title.TextWrapped = true
  84.  
  85. ObGuns.Name = "ObGuns"
  86. ObGuns.Parent = Frame
  87. ObGuns.AnchorPoint = Vector2.new(0.5, 0.5)
  88. ObGuns.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  89. ObGuns.BorderColor3 = FavoriteColor
  90. ObGuns.BorderSizePixel = 2
  91. ObGuns.Position = UDim2.new(0.275000006, 0, 0.200000003, 0)
  92. ObGuns.Size = UDim2.new(0, 73, 0, 32)
  93. ObGuns.Font = Enum.Font.SourceSans
  94. ObGuns.Text = "Guns"
  95. ObGuns.TextColor3 = FavoriteColor
  96. ObGuns.TextSize = 25.000
  97. ObGuns.TextWrapped = true
  98. ObGuns.BorderMode = "Inset"
  99.  
  100. NexusTP.Name = "NexusTP"
  101. NexusTP.Parent = Frame
  102. NexusTP.AnchorPoint = Vector2.new(0.5, 0.5)
  103. NexusTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  104. NexusTP.BorderColor3 = FavoriteColor
  105. NexusTP.BorderSizePixel = 2
  106. NexusTP.Position = UDim2.new(0.275000006, 0, 0.340000004, 0)
  107. NexusTP.Size = UDim2.new(0, 73, 0, 32)
  108. NexusTP.Font = Enum.Font.SourceSans
  109. NexusTP.Text = "Nexus"
  110. NexusTP.TextColor3 = FavoriteColor
  111. NexusTP.TextSize = 25.000
  112. NexusTP.TextWrapped = true
  113. NexusTP.BorderMode = "Inset"
  114.  
  115. BackTP.Name = "BackTP"
  116. BackTP.Parent = Frame
  117. BackTP.AnchorPoint = Vector2.new(0.5, 0.5)
  118. BackTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  119. BackTP.BorderColor3 = FavoriteColor
  120. BackTP.BorderSizePixel = 2
  121. BackTP.Position = UDim2.new(0.275000006, 0, 0.479999989, 0)
  122. BackTP.Size = UDim2.new(0, 73, 0, 32)
  123. BackTP.Font = Enum.Font.SourceSans
  124. BackTP.Text = "Back"
  125. BackTP.TextColor3 = FavoriteColor
  126. BackTP.TextSize = 25.000
  127. BackTP.TextWrapped = true
  128. BackTP.BorderMode = "Inset"
  129.  
  130. BeGuardF.Name = "BeGuardF"
  131. BeGuardF.Parent = Frame
  132. BeGuardF.AnchorPoint = Vector2.new(0.5, 0.5)
  133. BeGuardF.BackgroundColor3 = Color3.fromRGB(9, 0, 77)
  134. BeGuardF.BorderColor3 = FavoriteColor
  135. BeGuardF.BorderSizePixel = 2
  136. BeGuardF.Position = UDim2.new(0.680000007, 0, 0.224999994, 0)
  137. BeGuardF.Size = UDim2.new(0, 20, 0, 17)
  138. BeGuardF.SizeConstraint = Enum.SizeConstraint.RelativeXX
  139. BeGuardF.ZIndex = 3
  140. BeGuardF.Font = Enum.Font.SourceSans
  141. BeGuardF.Text = ""
  142. BeGuardF.TextColor3 = FavoriteColor
  143. BeGuardF.TextSize = 25.000
  144. BeGuardF.TextWrapped = true
  145. BeGuardF.BorderMode = "Inset"
  146.  
  147. BeInmate.Name = "BeInmate"
  148. BeInmate.Parent = Frame
  149. BeInmate.AnchorPoint = Vector2.new(0.5, 0.5)
  150. BeInmate.BackgroundColor3 = Color3.fromRGB(92, 40, 1)
  151. BeInmate.BorderColor3 = FavoriteColor
  152. BeInmate.BorderSizePixel = 2
  153. BeInmate.Position = UDim2.new(0.589999974, 0, 0.200000003, 0)
  154. BeInmate.Size = UDim2.new(0, 20, 0, 32)
  155. BeInmate.ZIndex = 2
  156. BeInmate.Font = Enum.Font.SourceSans
  157. BeInmate.Text = ""
  158. BeInmate.TextColor3 = FavoriteColor
  159. BeInmate.TextSize = 25.000
  160. BeInmate.TextWrapped = true
  161. BeInmate.BorderMode = "Inset"
  162.  
  163. BeCriminal.Name = "BeCriminal"
  164. BeCriminal.Parent = Frame
  165. BeCriminal.AnchorPoint = Vector2.new(0.5, 0.5)
  166. BeCriminal.BackgroundColor3 = Color3.fromRGB(96, 0, 1)
  167. BeCriminal.BorderColor3 = FavoriteColor
  168. BeCriminal.BorderSizePixel = 2
  169. BeCriminal.Position = UDim2.new(0.769999981, 0, 0.200000003, 0)
  170. BeCriminal.Size = UDim2.new(0, 20, 0, 32)
  171. BeCriminal.ZIndex = 2
  172. BeCriminal.Font = Enum.Font.SourceSans
  173. BeCriminal.Text = ""
  174. BeCriminal.TextColor3 = FavoriteColor
  175. BeCriminal.TextSize = 25.000
  176. BeCriminal.TextWrapped = true
  177. BeCriminal.BorderMode = "Inset"
  178.  
  179. BeNeutral.Name = "BeNeutral"
  180. BeNeutral.Parent = Frame
  181. BeNeutral.AnchorPoint = Vector2.new(0.5, 0.5)
  182. BeNeutral.BackgroundColor3 = Color3.fromRGB(140, 140, 140)
  183. BeNeutral.BorderColor3 = FavoriteColor
  184. BeNeutral.BorderSizePixel = 2
  185. BeNeutral.Position = UDim2.new(0.860000014, 0, 0.200000003, 0)
  186. BeNeutral.Size = UDim2.new(0, 20, 0, 32)
  187. BeNeutral.ZIndex = 2
  188. BeNeutral.Font = Enum.Font.SourceSans
  189. BeNeutral.Text = ""
  190. BeNeutral.TextColor3 = FavoriteColor
  191. BeNeutral.TextSize = 25.000
  192. BeNeutral.TextWrapped = true
  193. BeNeutral.BorderMode = "Inset"
  194.  
  195. YardTP.Name = "YardTP"
  196. YardTP.Parent = Frame
  197. YardTP.AnchorPoint = Vector2.new(0.5, 0.5)
  198. YardTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  199. YardTP.BorderColor3 = FavoriteColor
  200. YardTP.BorderSizePixel = 2
  201. YardTP.Position = UDim2.new(0.725000024, 0, 0.340000004, 0)
  202. YardTP.Size = UDim2.new(0, 73, 0, 32)
  203. YardTP.Font = Enum.Font.SourceSans
  204. YardTP.Text = "Yard"
  205. YardTP.TextColor3 = FavoriteColor
  206. YardTP.TextSize = 25.000
  207. YardTP.TextWrapped = true
  208. YardTP.BorderMode = "Inset"
  209.  
  210. CafeTP.Name = "CafeTP"
  211. CafeTP.Parent = Frame
  212. CafeTP.AnchorPoint = Vector2.new(0.5, 0.5)
  213. CafeTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  214. CafeTP.BorderColor3 = FavoriteColor
  215. CafeTP.BorderSizePixel = 2
  216. CafeTP.Position = UDim2.new(0.725000024, 0, 0.479999989, 0)
  217. CafeTP.Size = UDim2.new(0, 73, 0, 32)
  218. CafeTP.Font = Enum.Font.SourceSans
  219. CafeTP.Text = "Cafe"
  220. CafeTP.TextColor3 = FavoriteColor
  221. CafeTP.TextSize = 25.000
  222. CafeTP.TextWrapped = true
  223. CafeTP.BorderMode = "Inset"
  224.  
  225. Refresh.Name = "Refresh"
  226. Refresh.Parent = Frame
  227. Refresh.AnchorPoint = Vector2.new(0.5, 0.5)
  228. Refresh.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  229. Refresh.BorderColor3 = FavoriteColor
  230. Refresh.BorderSizePixel = 2
  231. Refresh.Position = UDim2.new(0.275000006, 0, 0.899999976, 0)
  232. Refresh.Size = UDim2.new(0, 73, 0, 32)
  233. Refresh.Font = Enum.Font.SourceSans
  234. Refresh.Text = "Re"
  235. Refresh.TextColor3 = FavoriteColor
  236. Refresh.TextSize = 25.000
  237. Refresh.TextWrapped = true
  238. Refresh.BorderMode = "Inset"
  239.  
  240. Respawn.Name = "Respawn"
  241. Respawn.Parent = Frame
  242. Respawn.Active = false
  243. Respawn.AnchorPoint = Vector2.new(0.5, 0.5)
  244. Respawn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  245. Respawn.BorderColor3 = FavoriteColor
  246. Respawn.BorderSizePixel = 2
  247. Respawn.Position = UDim2.new(0.725000024, 0, 0.899999976, 0)
  248. Respawn.Size = UDim2.new(0, 73, 0, 32)
  249. Respawn.Font = Enum.Font.SourceSans
  250. Respawn.Text = "Spawn"
  251. Respawn.TextColor3 = FavoriteColor
  252. Respawn.TextSize = 25.000
  253. Respawn.TextWrapped = true
  254. Respawn.BorderMode = "Inset"
  255.  
  256. BeGuard.Name = "BeGuard"
  257. BeGuard.Parent = Frame
  258. BeGuard.AnchorPoint = Vector2.new(0.5, 0.5)
  259. BeGuard.BackgroundColor3 = Color3.fromRGB(9, 0, 77)
  260. BeGuard.BorderColor3 = FavoriteColor
  261. BeGuard.BorderSizePixel = 2
  262. BeGuard.Position = UDim2.new(0.680000007, 0, 0.174999997, 0)
  263. BeGuard.Size = UDim2.new(0, 20, 0, 17)
  264. BeGuard.SizeConstraint = Enum.SizeConstraint.RelativeXX
  265. BeGuard.ZIndex = 3
  266. BeGuard.Font = Enum.Font.SourceSans
  267. BeGuard.Text = ""
  268. BeGuard.TextColor3 = FavoriteColor
  269. BeGuard.TextSize = 25.000
  270. BeGuard.TextWrapped = true
  271. BeGuard.BorderMode = "Inset"
  272.  
  273. CellsTP.Name = "CellsTP"
  274. CellsTP.Parent = Frame
  275. CellsTP.AnchorPoint = Vector2.new(0.5, 0.5)
  276. CellsTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  277. CellsTP.BorderColor3 = FavoriteColor
  278. CellsTP.BorderSizePixel = 2
  279. CellsTP.Position = UDim2.new(0.725000024, 0, 0.620000005, 0)
  280. CellsTP.Size = UDim2.new(0, 73, 0, 32)
  281. CellsTP.Font = Enum.Font.SourceSans
  282. CellsTP.Text = "Cells"
  283. CellsTP.TextColor3 = FavoriteColor
  284. CellsTP.TextSize = 25.000
  285. CellsTP.TextWrapped = true
  286. CellsTP.BorderMode = "Inset"
  287.  
  288. Lock.Name = "Lock"
  289. Lock.Parent = Frame
  290. Lock.AnchorPoint = Vector2.new(0.5, 0.5)
  291. Lock.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  292. Lock.BorderColor3 = FavoriteColor
  293. Lock.BorderSizePixel = 2
  294. Lock.Position = UDim2.new(0.5, 0, 0.75999999, 0)
  295. Lock.Size = UDim2.new(0, 156, 0, 32)
  296. Lock.Font = Enum.Font.SourceSans
  297. Lock.Text = "Lock"
  298. Lock.TextColor3 = FavoriteColor
  299. Lock.TextSize = 25.000
  300. Lock.TextWrapped = true
  301. Lock.BorderMode = "Inset"
  302.  
  303. ArmoryTP.Name = "ArmoryTP"
  304. ArmoryTP.Parent = Frame
  305. ArmoryTP.AnchorPoint = Vector2.new(0.5, 0.5)
  306. ArmoryTP.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  307. ArmoryTP.BorderColor3 = FavoriteColor
  308. ArmoryTP.BorderSizePixel = 2
  309. ArmoryTP.Position = UDim2.new(0.275000006, 0, 0.620000005, 0)
  310. ArmoryTP.Size = UDim2.new(0, 73, 0, 32)
  311. ArmoryTP.Font = Enum.Font.SourceSans
  312. ArmoryTP.Text = "Armory"
  313. ArmoryTP.TextColor3 = FavoriteColor
  314. ArmoryTP.TextSize = 25.000
  315. ArmoryTP.TextWrapped = true
  316. ArmoryTP.BorderMode = "Inset"
  317.  
  318. ArmoryTP.MouseButton1Down:connect(function()
  319.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(798,99,2260)
  320. end)
  321.  
  322. BackTP.MouseButton1Down:connect(function()
  323.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(980, 101, 2327)
  324. end)
  325.  
  326. BeCriminal.MouseButton1Down:connect(function()
  327.     local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  328.     LCS = game.Workspace["Criminals Spawn"].SpawnLocation
  329.     LCS.CanCollide = false
  330.     LCS.Size = Vector3.new(51.05, 24.12, 54.76)
  331.     LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  332.     LCS.Transparency = 1
  333.     wait(0.5)
  334.     LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  335.     LCS.Size = Vector3.new(6, 0.2, 6)
  336.     LCS.Transparency = 0
  337.     wait()
  338.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  339. end)
  340.  
  341. BeGuard.MouseButton1Down:connect(function()
  342.     Workspace.Remote.TeamEvent:FireServer("Bright blue")
  343. end)
  344.  
  345. BeGuardF.MouseButton1Down:connect(function()
  346.     local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  347.     workspace.Remote.loadchar:InvokeServer("", "Bright blue")
  348.     wait()
  349.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  350. end)
  351.  
  352. BeInmate.MouseButton1Down:connect(function()
  353.     Workspace.Remote.TeamEvent:FireServer("Bright orange")
  354. end)
  355.  
  356. BeNeutral.MouseButton1Down:connect(function()
  357.     Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
  358. end)
  359.  
  360. CafeTP.MouseButton1Down:connect(function()
  361.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(879,99,2247)
  362. end)
  363.  
  364. CellsTP.MouseButton1Down:connect(function()
  365.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(910,99,2477)
  366. end)
  367.  
  368. Lock.MouseButton1Down:connect(function()
  369.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 24
  370.     game.Players.LocalPlayer.Character.ClientInputHandler.Disabled = true
  371.     game.Players.LocalPlayer.CharacterAdded:connect(function()
  372.     game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  373.     game.Players.LocalPlayer.Character.ClientInputHandler.Disabled = true
  374.     end)
  375. end)
  376.  
  377. NexusTP.MouseButton1Down:connect(function()
  378.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(879,99,2377)
  379. end)
  380.  
  381. ObGuns.MouseButton1Down:connect(function() 
  382.     if game.Players.LocalPlayer.Team.Name == "Criminals" then
  383.         if game.Players.LocalPlayer.Character:FindFirstChildOfClass("ForceField") then return end
  384.     end
  385.     getGuns()
  386. end)
  387.  
  388. Refresh.MouseButton1Down:connect(function()
  389.     if (game.Players.LocalPlayer.Team.Name ~= "Criminals") then
  390.         local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  391.         local plr = game.Players.LocalPlayer.Name
  392.         local gayevent = game:GetService("Workspace").Remote.loadchar
  393.         gayevent:InvokeServer(plr)
  394.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  395.     else
  396.         local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  397.         Workspace.Remote.TeamEvent:FireServer("Bright orange")
  398.         wait()
  399.         local plr = game.Players.LocalPlayer.Name
  400.         local gayevent = game:GetService("Workspace").Remote.loadchar
  401.         gayevent:InvokeServer(plr)
  402.         LCS = game.Workspace["Criminals Spawn"].SpawnLocation
  403.         LCS.CanCollide = false
  404.         LCS.Size = Vector3.new(51.05, 24.12, 54.76)
  405.         LCS.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  406.         LCS.Transparency = 1
  407.         wait(0.5)
  408.         LCS.CFrame = CFrame.new(-920.510803, 92.2271957, 2138.27002, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  409.         LCS.Size = Vector3.new(6, 0.2, 6)
  410.         LCS.Transparency = 0
  411.         wait()
  412.         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  413.     end
  414. end)
  415.  
  416. Respawn.MouseButton1Down:connect(function()
  417.     local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  418.     local plr = game.Players.LocalPlayer.Name
  419.     local gayevent = game:GetService("Workspace").Remote.loadchar
  420.     gayevent:InvokeServer(plr)
  421. end)
  422.  
  423. YardTP.MouseButton1Down:connect(function()
  424.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(779,99,2477)
  425. end)
  426.  
  427. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  428.     if gameProcessedEvent then return end
  429.     local children = Frame:GetChildren()
  430.     if inputObject.KeyCode == Enum.KeyCode.Q then
  431.         if Frame.BackgroundTransparency == 0 then
  432.             Frame.BackgroundTransparency = 1
  433.             for i, child in ipairs(children) do
  434.                 print(child.Name)
  435.                 child.BackgroundTransparency = 1
  436.                 child.TextTransparency = 1
  437.             end
  438.         else
  439.             Frame.BackgroundTransparency = 0
  440.             for i, child in ipairs(children) do
  441.                 if child.Name ~= "Title" then
  442.                     child.BackgroundTransparency = 0
  443.                 end
  444.                 child.TextTransparency = 0
  445.             end
  446.         end
  447.     end
  448.     if inputObject.KeyCode == Enum.KeyCode.Z then
  449.         if ChatEnabled then
  450.             ChatEnabled = false
  451.             game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
  452.             for i, player in pairs(game.Players:GetPlayers()) do
  453.                 player:WaitForChild("PlayerScripts").BubbleChat.Disabled = true
  454.                 player:WaitForChild("PlayerGui").BubbleChat:Destroy()
  455.             end
  456.         else
  457.             ChatEnabled = true
  458.             game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  459.             for i, player in pairs(game.Players:GetPlayers()) do
  460.                 player:WaitForChild("PlayerScripts").BubbleChat.Disabled = false
  461.             end
  462.         end
  463.     end
  464.     if inputObject.KeyCode == Enum.KeyCode.Slash then
  465.         ChatEnabled = true
  466.         game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat, true)
  467.     end
  468.     if inputObject.KeyCode == Enum.KeyCode.X then
  469.         if BubblesEnabled then
  470.             BubblesEnabled = false
  471.             for i, player in pairs(game.Players:GetPlayers()) do
  472.                 player:WaitForChild("PlayerScripts").BubbleChat.Disabled = true
  473.                 player:WaitForChild("PlayerGui").BubbleChat:Destroy()
  474.             end
  475.         else
  476.             BubblesEnabled = true
  477.             for i, player in pairs(game.Players:GetPlayers()) do
  478.                 player:WaitForChild("PlayerScripts").BubbleChat.Disabled = false
  479.             end
  480.         end
  481.     end
  482.     if inputObject.KeyCode == Enum.KeyCode.E then
  483.         if game.Players.LocalPlayer.Team.Name == "Criminals" then
  484.             if game.Players.LocalPlayer.Character:FindFirstChildOfClass("ForceField") then return end
  485.         end
  486.         if (game.Players.LocalPlayer.Backpack:FindFirstChild("M9")) then
  487.             game.Players.LocalPlayer.Backpack:FindFirstChild("M9").Parent = game.Players.LocalPlayer
  488.         end
  489.         if (game.Players.LocalPlayer.Backpack:FindFirstChild("Taser")) then
  490.             game.Players.LocalPlayer.Backpack.Taser:Destroy()
  491.         end
  492.         if (game.Players.LocalPlayer.Backpack:FindFirstChild("Handcuffs")) then
  493.             game.Players.LocalPlayer.Backpack.Handcuffs:Destroy()
  494.         end
  495.         getGuns()
  496.     end
  497. end)
  498.  
  499.  
  500.  
  501. function dragify(Frame)
  502. dragToggle = nil
  503. dragSpeed = 100000 -- You can edit this.
  504. dragInput = nil
  505. dragStart = nil
  506. dragPos = nil
  507.  
  508. function updateInput(input)
  509. Delta = input.Position - dragStart
  510. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  511. game:GetService("TweenService"):Create(Frame, TweenInfo.new(0), {Position = Position}):Play()
  512. end
  513.  
  514. Frame.InputBegan:Connect(function(input)
  515. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  516. dragToggle = true
  517. dragStart = input.Position
  518. startPos = Frame.Position
  519. input.Changed:Connect(function()
  520. if (input.UserInputState == Enum.UserInputState.End) then
  521. dragToggle = false
  522. end
  523. end)
  524. end
  525. end)
  526.  
  527. Frame.InputChanged:Connect(function(input)
  528. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  529. dragInput = input
  530. end
  531. end)
  532.  
  533. game:GetService("UserInputService").InputChanged:Connect(function(input)
  534. if (input == dragInput and dragToggle) then
  535. updateInput(input)
  536. end
  537. end)
  538. end
  539.  
  540. dragify(Frame)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement