Advertisement
Runixer

Untitled

Jan 13th, 2019
2,299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.05 KB | None | 0 0
  1. local Prefix = ":"
  2.  
  3. local ClientSound = Instance.new("Sound")
  4. ClientSound.SoundId = "http://www.roblox.com/asset/?id=2741270504"
  5. ClientSound.Volume = 2
  6. ClientSound.Parent = workspace
  7. ClientSound.PlaybackSpeed = 1
  8. ClientSound:Play()
  9.  
  10. -- Objects
  11.  
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local Frame = Instance.new("Frame")
  14. local TextLabel = Instance.new("TextLabel")
  15. local TextButton = Instance.new("TextButton")
  16. local TextButton_2 = Instance.new("TextButton")
  17.  
  18. -- Properties
  19.  
  20. ScreenGui.Parent = game.CoreGui
  21.  
  22. Frame.Parent = ScreenGui
  23. Frame.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  24. Frame.BorderColor3 = Color3.new(0, 0, 0)
  25. Frame.Position = UDim2.new(0.342884421, 0, 0.194006309, 0)
  26. Frame.Size = UDim2.new(0, 311, 0, 134)
  27.  
  28. TextLabel.Parent = Frame
  29. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  30. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  31. TextLabel.Size = UDim2.new(0, 311, 0, 50)
  32. TextLabel.Font = Enum.Font.GothamSemibold
  33. TextLabel.Text = "Hospital Life 2 Admin 2.0 Loaded!"
  34. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  35. TextLabel.TextScaled = true
  36. TextLabel.TextSize = 14
  37. TextLabel.TextWrapped = true
  38.  
  39. TextButton.Parent = Frame
  40. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  41. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  42. TextButton.Position = UDim2.new(0.530546606, 0, 0.626865685, 0)
  43. TextButton.Size = UDim2.new(0, 146, 0, 50)
  44. TextButton.Font = Enum.Font.GothamSemibold
  45. TextButton.Text = "OK"
  46. TextButton.TextColor3 = Color3.new(1, 1, 1)
  47. TextButton.TextScaled = true
  48. TextButton.TextSize = 14
  49. TextButton.TextWrapped = true
  50.  
  51. TextButton_2.Parent = Frame
  52. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  53. TextButton_2.BorderColor3 = Color3.new(0, 0, 0)
  54. TextButton_2.Position = UDim2.new(0, 0, 0.626865685, 0)
  55. TextButton_2.Size = UDim2.new(0, 146, 0, 50)
  56. TextButton_2.Font = Enum.Font.GothamSemibold
  57. TextButton_2.Text = "Commands"
  58. TextButton_2.TextColor3 = Color3.new(1, 1, 1)
  59. TextButton_2.TextScaled = true
  60. TextButton_2.TextSize = 14
  61. TextButton_2.TextWrapped = true
  62.  
  63. TextButton.MouseButton1Click:connect(function()
  64. local ClientSound2 = Instance.new("Sound")
  65. ClientSound2.SoundId = "http://www.roblox.com/asset/?id=142916958"
  66. ClientSound2.Volume = 1
  67. ClientSound2.Parent = workspace
  68. ClientSound2.PlaybackSpeed = .94125
  69. ClientSound2:Play()
  70. for i=1,math.random(6,9) do
  71. Frame.BackgroundTransparency = Frame.BackgroundTransparency + .1
  72. TextButton.TextTransparency = TextButton.TextTransparency + .1
  73. TextButton_2.TextTransparency = TextButton_2.TextTransparency + .1
  74. wait()
  75. end
  76. game.CoreGui.ScreenGui:Destroy()
  77. end)
  78.  
  79. TextButton_2.MouseButton1Click:connect(function()
  80. local ClientSound3 = Instance.new("Sound")
  81. ClientSound3.SoundId = "http://www.roblox.com/asset/?id=142916958"
  82. ClientSound3.Volume = 1
  83. ClientSound3.Parent = workspace
  84. ClientSound3.PlaybackSpeed = .94125
  85. ClientSound3:Play()
  86. game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
  87. print([[
  88.  
  89. Script Admin Commands
  90. Refer to the prefix at the top of the script
  91. cmds
  92. prefix [prefix] (cannot be more than one character)
  93. kill [player]
  94. explode [player]
  95. arrest [player]
  96. spamarrest [player]
  97. gear me [ID]
  98. name me [name]
  99. sword me
  100. boombox me
  101. bomb me
  102. hat me [ID]
  103. ws me [amount]
  104. jp me [amount]
  105. admin [player]
  106. fixcam me]])
  107. end)
  108.  
  109. --Credit to timeless for this part V
  110. function GetPlayer(String)
  111. local Found = {}
  112. local strl = String:lower()
  113. if strl == "all" then
  114. for i,v in pairs(game.Players:GetPlayers()) do
  115. table.insert(Found,v)
  116. end
  117. elseif strl == "others" then
  118. for i,v in pairs(game.Players:GetPlayers()) do
  119. if v.Name ~= game.Players.LocalPlayer.Name then
  120. table.insert(Found,v)
  121. end
  122. end
  123. elseif strl == "me" then
  124. for i,v in pairs(game.Players:GetPlayers()) do
  125. if v.Name == game.Players.LocalPlayer.Name then
  126. table.insert(Found,v)
  127. end
  128. end
  129. else
  130. for i,v in pairs(game.Players:GetPlayers()) do
  131. if v.Name:lower():sub(1, #String) == String:lower() then
  132. table.insert(Found,v)
  133. end
  134. end
  135. end
  136. return Found
  137. end
  138. function GetPlayer_Event(String)
  139. local Found = {}
  140. local strl = String:lower()
  141. if strl == "all" then
  142. for i,v in pairs(game.Players:GetPlayers()) do
  143. table.insert(Found,v.Name)
  144. end
  145. elseif strl == "others" then
  146. for i,v in pairs(game.Players:GetPlayers()) do
  147. if v.Name ~= game.Players.LocalPlayer.Name then
  148. table.insert(Found,v.Name)
  149. end
  150. end
  151. elseif strl == "me" then
  152. for i,v in pairs(game.Players:GetPlayers()) do
  153. if v.Name == game.Players.LocalPlayer.Name then
  154. table.insert(Found,v.Name)
  155. end
  156. end
  157. else
  158. for i,v in pairs(game.Players:GetPlayers()) do
  159. if v.Name:lower():sub(1, #String) == String:lower() then
  160. table.insert(Found,v.Name)
  161. end
  162. end
  163. end
  164. return Found
  165. end
  166. --End of credit ^
  167.  
  168. workspace.FE.RemoteEvents.NameChange:FireServer("Admin | "..game.Players.LocalPlayer.Name)
  169. wait()
  170. game:GetService("StarterGui"):SetCore("SendNotification", {
  171. Title = "Hospital Life Admin 2.0 Loaded!";
  172. Text = "Say :cmds for the commands.";
  173. })
  174. wait()
  175. game.Players.LocalPlayer.Chatted:connect(function(msg)
  176. if msg == Prefix.."fixcam" or msg == Prefix.."fixcam me" then
  177. workspace.CurrentCamera.CameraType = Enum.CameraType.Track
  178. end
  179. end)
  180. game.Players.LocalPlayer.Chatted:connect(function(msg)
  181. if msg:sub(1,8) == Prefix.."prefix " then
  182. local prefixx = msg:sub(9, #msg)
  183. Prefix = prefixx
  184. end
  185. end)
  186. game.Players.LocalPlayer.Chatted:connect(function(msg)
  187. if string.sub(msg,1,9) == (Prefix.."gear me ") then
  188. local Gear = msg:sub(10, #msg)
  189. Gearx = {Gear}
  190. for i,v in pairs(Gearx) do
  191. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", v)
  192. end
  193. end
  194. end)
  195. game.Players.LocalPlayer.Chatted:connect(function(msg)
  196. if msg:sub(1,9) == Prefix.."name me " then
  197. local name = msg:sub(10, #msg)
  198. workspace.FE.RemoteEvents.NameChange:FireServer(name)
  199. end
  200. end)
  201. game.Players.LocalPlayer.Chatted:connect(function(msg)
  202. if msg == Prefix.."sword" or msg == Prefix.."sword me" then
  203. local things = {125013769}
  204. for i,v in pairs(things) do
  205. workspace.FE.RemoteEvents.Accessories:FireServer("Hat", v)
  206. end
  207. end
  208. end)
  209. game.Players.LocalPlayer.Chatted:connect(function(msg)
  210. if msg == Prefix.."boombox" or msg == Prefix.."boombox me" then
  211. local things = {212641536}
  212. for i,v in pairs(things) do
  213. workspace.FE.RemoteEvents.Accessories:FireServer("Hat", v)
  214. end
  215. end
  216. end)
  217. game.Players.LocalPlayer.Chatted:connect(function(msg)
  218. if msg == Prefix.."bomb" or msg == Prefix.."bomb me" then
  219. local things = {11563251}
  220. for i,v in pairs(things) do
  221. workspace.FE.RemoteEvents.Accessories:FireServer("Hat", v)
  222. end
  223. end
  224. end)
  225. game.Players.LocalPlayer.Chatted:connect(function(msg)
  226. if string.sub(msg,1,8) == (Prefix.."arrest ") then
  227. for i,v in pairs(GetPlayer_Event(string.sub(msg, 9))) do
  228. workspace.FE.RemoteEvents.HandcuffArrest:FireServer(v)
  229. end
  230. end
  231. end)
  232. game.Players.LocalPlayer.Chatted:connect(function(msg)
  233. if string.sub(msg,1,9) == (Prefix.."explode ") then
  234. for i,v in pairs(GetPlayer(string.sub(msg, 10))) do
  235. local Location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  236. local targetplayer = v.Character.HumanoidRootPart
  237. things = {1527622}
  238. for v,i in pairs(things) do
  239. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", i)
  240. end
  241. wait(4.875)
  242. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetplayer.Position.X, targetplayer.Position.Y, targetplayer.Position.Z)
  243. wait(6)
  244. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Location
  245. end
  246. end
  247. end)
  248. game.Players.LocalPlayer.Chatted:connect(function(msg)
  249. if string.sub(msg,1,6) == (Prefix.."kill ") then
  250. for i,v in pairs(GetPlayer(string.sub(msg, 7))) do
  251. local Location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  252. local targetplayer = v.Character.HumanoidRootPart
  253. things = {1527622}
  254. for v,i in pairs(things) do
  255. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", i)
  256. end
  257. wait(4.875)
  258. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetplayer.Position.X, targetplayer.Position.Y, targetplayer.Position.Z)
  259. wait(6)
  260. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Location
  261. end
  262. end
  263. end)
  264. game.Players.LocalPlayer.Chatted:connect(function(msg)
  265. if string.sub(msg,1,8) == (Prefix.."hat me ") then
  266. local Hat = msg:sub(9, #msg)
  267. Hatx = {Hat}
  268. for i,v in pairs(Gearx) do
  269. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", v)
  270. end
  271. end
  272. end)
  273. game.Players.LocalPlayer.Chatted:connect(function(msg)
  274. if string.sub(msg,1,7) == (Prefix.."ws me ") then
  275. local ws = msg:sub(8, #msg)
  276. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ws
  277. end
  278. end)
  279. game.Players.LocalPlayer.Chatted:connect(function(msg)
  280. if string.sub(msg,1,8) == (Prefix.."jp me ") then
  281. local jp = msg:sub(9, #msg)
  282. game.Players.LocalPlayer.Character.Humanoid.JumpPower = jp
  283. end
  284. end)
  285. game.Players.LocalPlayer.Chatted:connect(function(msg)
  286. if string.sub(msg,1,12) == (Prefix.."spamarrest ") then
  287. for i,v in pairs(GetPlayer_Event(string.sub(msg, 13))) do
  288. repeat
  289. workspace.FE.RemoteEvents.HandcuffArrest:FireServer(v)
  290. wait()
  291. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  292. end
  293. end
  294. end)
  295. game.Players.LocalPlayer.Chatted:connect(function(msg)
  296. if string.sub(msg,1,7) == (Prefix.."admin ") then
  297. for i,v in pairs(GetPlayer(string.sub(msg, 8))) do
  298. if msg:sub(8, #msg) == "others" then
  299. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/me has given admin powers to everyone else accept themself.", "All")
  300. else
  301. if msg:sub(8, #msg) == "all" then
  302. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/me has given admin powers to everyone.", "All")
  303. else
  304. if msg:sub(8, #msg) == "me" then
  305. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/me has given admin powers to themself.", "All")
  306. else
  307. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("/me has given admin powers to "..v.Name..".", "All")
  308. end
  309. end
  310. end
  311. v.Chatted:connect(function(msg)
  312. if string.sub(msg,1,12) == (Prefix.."spamarrest ") then
  313. for i,v in pairs(GetPlayer_Event(string.sub(msg, 13))) do
  314. repeat
  315. workspace.FE.RemoteEvents.HandcuffArrest:FireServer(v)
  316. wait()
  317. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  318. end
  319. end
  320. end)
  321. v.Chatted:connect(function(msg)
  322. if string.sub(msg,1,8) == (Prefix.."arrest ") then
  323. for i,v in pairs(GetPlayer_Event(string.sub(msg, 9))) do
  324. workspace.FE.RemoteEvents.HandcuffArrest:FireServer(v)
  325. end
  326. end
  327. end)
  328. v.Chatted:connect(function(msg)
  329. if string.sub(msg,1,9) == (Prefix.."explode ") then
  330. for i,v in pairs(GetPlayer(string.sub(msg, 10))) do
  331. local Location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  332. local targetplayer = v.Character.HumanoidRootPart
  333. things = {1527622}
  334. for v,i in pairs(things) do
  335. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", i)
  336. end
  337. wait(4.875)
  338. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetplayer.Position.X, targetplayer.Position.Y, targetplayer.Position.Z)
  339. wait(6)
  340. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Location
  341. end
  342. end
  343. end)
  344. v.Chatted:connect(function(msg)
  345. if string.sub(msg,1,6) == (Prefix.."kill ") then
  346. for i,v in pairs(GetPlayer(string.sub(msg, 7))) do
  347. local Location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  348. local targetplayer = v.Character.HumanoidRootPart
  349. things = {1527622}
  350. for v,i in pairs(things) do
  351. game:GetService"Workspace".FE.RemoteEvents.Accessories:FireServer("Hat", i)
  352. end
  353. wait(4.875)
  354. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(targetplayer.Position.X, targetplayer.Position.Y, targetplayer.Position.Z)
  355. wait(6)
  356. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = Location
  357. end
  358. end
  359. end)
  360. v.Chatted:connect(function(msg)
  361. if msg == Prefix.."cmds" or msg == Prefix.."commands" then
  362. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Mod/Admin Commands: "..Prefix.."kill [player] | "..Prefix.."explode [player] | "..Prefix.."arrest [player] | "..Prefix.."spamarrest [player] | "..Prefix.."cmds", "All")
  363. end
  364. end)
  365. end
  366. end
  367. end)
  368. game.Players.LocalPlayer.Chatted:connect(function(msg)
  369. if msg == Prefix.."cmds" or msg == Prefix.."commands" then
  370. print("Script Admin Commands")
  371. print("Refer to the prefix at the top of the script")
  372. print("cmds")
  373. print("prefix [prefix] (cannot be more than one character)")
  374. print("kill [player]")
  375. print("explode [player]")
  376. print("arrest [player]")
  377. print("spamarrest [player]")
  378. print("gear me [ID]")
  379. print("name me [name]")
  380. print("sword me")
  381. print("boombox me")
  382. print("bomb me")
  383. print("hat me [ID]")
  384. print("ws me [amount]")
  385. print("jp me [amount]")
  386. print("admin [player]")
  387. print("fixcam me")
  388. game:GetService("StarterGui"):SetCore("DeveloperConsoleVisible", true)
  389. end
  390. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement