Advertisement
NKSz

Hospital Life GUI

Apr 3rd, 2018
4,684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.04 KB | None | 0 0
  1. ScreenGui = Instance.new("ScreenGui")
  2. Frame = Instance.new("Frame")
  3. TextLabel = Instance.new("TextLabel")
  4. block = Instance.new("TextButton")
  5. bomb = Instance.new("TextButton")
  6. Ears = Instance.new("TextButton")
  7. Hat = Instance.new("TextButton")
  8. TextLabel_2 = Instance.new("TextLabel")
  9. Close = Instance.new("TextButton")
  10. Fly = Instance.new("TextButton")
  11. Creeper = Instance.new("TextButton")
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.Active = true
  17. Frame.BackgroundColor3 = Color3.new(0.168627, 0.278431, 1)
  18. Frame.BorderColor3 = Color3.new(0, 0, 0)
  19. Frame.Visible = true
  20. Frame.Draggable = true
  21. Frame.BorderSizePixel = 4
  22. Frame.Position = UDim2.new(0.193820223, 0, 0.14877589, 0)
  23. Frame.Size = UDim2.new(0, 278, 0, 292)
  24.  
  25. TextLabel.Parent = Frame
  26. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  27. TextLabel.BorderSizePixel = 0
  28. TextLabel.Size = UDim2.new(0, 278, 0, 50)
  29. TextLabel.Font = Enum.Font.Cartoon
  30. TextLabel.FontSize = Enum.FontSize.Size32
  31. TextLabel.Text = "REKT Hospital"
  32. TextLabel.TextSize = 30
  33. TextLabel.TextStrokeColor3 = Color3.new(0, 1, 0.14902)
  34. TextLabel.TextStrokeTransparency = 0
  35.  
  36. block.Name = "block"
  37. block.Parent = Frame
  38. block.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  39. block.Position = UDim2.new(0.0683453232, 0, 0.247521996, 0)
  40. block.Size = UDim2.new(0, 113, 0, 49)
  41. block.Font = Enum.Font.Garamond
  42. block.FontSize = Enum.FontSize.Size28
  43. block.Text = "Fe Blocks"
  44. block.TextSize = 25
  45. block.TextStrokeTransparency = 0.5
  46.  
  47. bomb.Name ="bomb"
  48. bomb.Parent = Frame
  49. bomb.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  50. bomb.Position = UDim2.new(0.528776944, 0, 0.247521996, 0)
  51. bomb.Size = UDim2.new(0, 113, 0, 49)
  52. bomb.Font = Enum.Font.Garamond
  53. bomb.FontSize = Enum.FontSize.Size28
  54. bomb.Text = "Bomb Vest"
  55. bomb.TextSize = 25
  56. bomb.TextStrokeTransparency = 0.5
  57.  
  58. Ears.Name = "Ears"
  59. Ears.Parent = Frame
  60. Ears.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  61. Ears.Position = UDim2.new(0.526978374, 0, 0.486663282, 0)
  62. Ears.Size = UDim2.new(0, 113, 0, 49)
  63. Ears.Font = Enum.Font.Garamond
  64. Ears.FontSize = Enum.FontSize.Size28
  65. Ears.Text = "Bunny Ears"
  66. Ears.TextSize = 25
  67. Ears.TextStrokeTransparency = 0.5
  68.  
  69. Hat.Name = "Hat"
  70. Hat.Parent = Frame
  71. Hat.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  72. Hat.Position = UDim2.new(0.0665467232, 0, 0.486663282, 0)
  73. Hat.Size = UDim2.new(0, 113, 0, 49)
  74. Hat.Font = Enum.Font.Garamond
  75. Hat.FontSize = Enum.FontSize.Size28
  76. Hat.Text = "Hat Spam"
  77. Hat.TextSize = 25
  78. Hat.TextStrokeTransparency = 0.5
  79.  
  80. TextLabel_2.Parent = Frame
  81. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  82. TextLabel_2.BackgroundTransparency = 1
  83. TextLabel_2.Position = UDim2.new(0.593525171, 0, 0.910569072, 0)
  84. TextLabel_2.Size = UDim2.new(0, 105, 0, 14)
  85. TextLabel_2.Font = Enum.Font.Cartoon
  86. TextLabel_2.FontSize = Enum.FontSize.Size14
  87. TextLabel_2.Text = "Made By NKSzYTz"
  88. TextLabel_2.TextSize = 14
  89. TextLabel_2.TextStrokeTransparency = 0
  90.  
  91. Close.Name = "Close"
  92. Close.Parent = Frame
  93. Close.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  94. Close.Position = UDim2.new(0.899280608, 0, 0, 0)
  95. Close.Size = UDim2.new(0, 28, 0, 24)
  96. Close.Font = Enum.Font.Garamond
  97. Close.FontSize = Enum.FontSize.Size28
  98. Close.Text = "X"
  99. Close.TextSize = 25
  100. Close.TextStrokeTransparency = 0.5
  101.  
  102. Fly.Name = "Fly"
  103. Fly.Parent = Frame
  104. Fly.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  105. Fly.Position = UDim2.new(0.526978374, 0, 0.712690711, 0)
  106. Fly.Size = UDim2.new(0, 113, 0, 49)
  107. Fly.Font = Enum.Font.Garamond
  108. Fly.FontSize = Enum.FontSize.Size28
  109. Fly.Text = "Fly [Press E]"
  110. Fly.TextSize = 25
  111. Fly.TextStrokeTransparency = 0.5
  112.  
  113. Creeper.Name = "Creeper"
  114. Creeper.Parent = Frame
  115. Creeper.BackgroundColor3 = Color3.new(1, 0, 0.14902)
  116. Creeper.Position = UDim2.new(0.0665467232, 0, 0.712690711, 0)
  117. Creeper.Size = UDim2.new(0, 113, 0, 49)
  118. Creeper.Font = Enum.Font.Garamond
  119. Creeper.FontSize = Enum.FontSize.Size28
  120. Creeper.Text = "Creeper"
  121. Creeper.TextSize = 25
  122. Creeper.TextStrokeTransparency = 0.5
  123.  
  124. bomb.MouseButton1Down:connect(function()
  125. game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer("gay", "8", "001527622")
  126.  
  127. local plr = game.Players.LocalPlayer
  128. while not plr.Character do wait() end
  129. local character = plr.Character
  130.  
  131. local gay = game:GetService("RunService")
  132. gay.RenderStepped:connect(function()
  133. for _,h in pairs(character:GetChildren()) do
  134. if h:IsA("Accoutrement") then
  135. h.Handle.LocalTransparencyModifier = 1
  136. end
  137. end
  138. end)
  139.  
  140. game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer("gay", "11", "445626340")
  141. end)
  142.  
  143. block.MouseButton1Down:connect(function()
  144. for i=1,500 do
  145. game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer("gay", "8", "331486631")
  146.  
  147. for i,v in pairs(game:GetService'Players'.LocalPlayer.Character:GetDescendants()) do
  148. if v:IsA'Hat' or v:IsA'Accessory' then
  149. v.Handle.Mesh:Destroy()
  150. v.Parent = workspace
  151. end
  152. end
  153. end
  154. end)
  155.  
  156. Ears.MouseButton1Down:connect(function()
  157. game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer("gay", "8", "331486631")
  158. end)
  159.  
  160. Hat.MouseButton1Down:connect(function()
  161. for i=1,500 do --Feel free to change value!
  162. game:GetService'ReplicatedStorage'.ITEM_PURCHASE:InvokeServer("gay", "8", "hatassetidhere")
  163.  
  164. for i,v in pairs(game:GetService'Players'.LocalPlayer.Character:GetDescendants()) do
  165. if v:IsA'Hat' or v:IsA'Accessory' then
  166. v.Parent = workspace
  167. end
  168. end
  169. end
  170. end)
  171.  
  172. Close.MouseButton1Down:connect(function()
  173. Frame.Visible = false
  174. end)
  175.  
  176. Fly.MouseButton1Down:connect(function()
  177. repeat wait()
  178. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  179. local mouse = game.Players.LocalPlayer:GetMouse()
  180. repeat wait() until mouse
  181. local plr = game.Players.LocalPlayer
  182. local torso = plr.Character.Torso
  183. local flying = true
  184. local deb = true
  185. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  186. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  187. local maxspeed = 50
  188. local speed = 0
  189.  
  190. function Fly()
  191. local bg = Instance.new("BodyGyro", torso)
  192. bg.P = 9e4
  193. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  194. bg.cframe = torso.CFrame
  195. local bv = Instance.new("BodyVelocity", torso)
  196. bv.velocity = Vector3.new(0,0.1,0)
  197. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  198. repeat wait()
  199. plr.Character.Humanoid.PlatformStand = true
  200. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  201. speed = speed+.5+(speed/maxspeed)
  202. if speed > maxspeed then
  203. speed = maxspeed
  204. end
  205. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  206. speed = speed-1
  207. if speed < 0 then
  208. speed = 0
  209. end
  210. end
  211. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  212. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  213. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  214. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  215. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  216. else
  217. bv.velocity = Vector3.new(0,0.1,0)
  218. end
  219. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  220. until not flying
  221. ctrl = {f = 0, b = 0, l = 0, r = 0}
  222. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  223. speed = 0
  224. bg:Destroy()
  225. bv:Destroy()
  226. plr.Character.Humanoid.PlatformStand = false
  227. end
  228. mouse.KeyDown:connect(function(key)
  229. if key:lower() == "e" then
  230. if flying then flying = false
  231. else
  232. flying = true
  233. Fly()
  234. end
  235. elseif key:lower() == "w" then
  236. ctrl.f = 1
  237. elseif key:lower() == "s" then
  238. ctrl.b = -1
  239. elseif key:lower() == "a" then
  240. ctrl.l = -1
  241. elseif key:lower() == "d" then
  242. ctrl.r = 1
  243. end
  244. end)
  245. mouse.KeyUp:connect(function(key)
  246. if key:lower() == "w" then
  247. ctrl.f = 0
  248. elseif key:lower() == "s" then
  249. ctrl.b = 0
  250. elseif key:lower() == "a" then
  251. ctrl.l = 0
  252. elseif key:lower() == "d" then
  253. ctrl.r = 0
  254. end
  255. end)
  256. Fly()
  257. end)
  258.  
  259. Creeper.MouseButton1Down:connect(function()
  260. for i,v in pairs(game:GetService('Players').LocalPlayer.Character:GetDescendants()) do
  261. if v:IsA'Hat' or v:IsA'Accessory' then
  262. v.Parent = workspace
  263. end
  264. end
  265.  
  266. game:GetService('Players').LocalPlayer.Character.Shirt:Destroy()
  267.  
  268. game:GetService('Players').LocalPlayer.Character.Pants:Destroy()
  269.  
  270. game:GetService('Players').LocalPlayer.Character.Head.BrickColor = BrickColor.new("Forest green")
  271.  
  272. game:GetService('Players').LocalPlayer.Character.Torso.BrickColor = BrickColor.new("Forest green")
  273.  
  274. game:GetService('Players').LocalPlayer.Character["Left Leg"].BrickColor = BrickColor.new("Forest green")
  275.  
  276. game:GetService('Players').LocalPlayer.Character["Right Leg"].BrickColor = BrickColor.new("Forest green")
  277.  
  278. game:GetService('Players').LocalPlayer.Character.Head.Mesh:Destroy()
  279.  
  280. game:GetService('Players').LocalPlayer.Character["Left Arm"]:Destroy()
  281.  
  282. game:GetService('Players').LocalPlayer.Character["Right Arm"]:Destroy()
  283. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement