Advertisement
gilward

Roblox Dorm Life Detention Script

Feb 3rd, 2019
2,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.46 KB | None | 0 0
  1. print("High School Dorm Life Gui v1")
  2.  
  3. -- Objects
  4.  
  5. local HSDLGuiv1 = Instance.new("ScreenGui")
  6. local Main = Instance.new("Frame")
  7. local Title = Instance.new("TextButton")
  8. local Title_2 = Instance.new("TextLabel")
  9. local TextLabel = Instance.new("TextLabel")
  10. local Players = Instance.new("ScrollingFrame")
  11. local p1 = Instance.new("TextButton")
  12. local p2 = Instance.new("TextButton")
  13. local p3 = Instance.new("TextButton")
  14. local p4 = Instance.new("TextButton")
  15. local p5 = Instance.new("TextButton")
  16. local p6 = Instance.new("TextButton")
  17. local p7 = Instance.new("TextButton")
  18. local p8 = Instance.new("TextButton")
  19. local p9 = Instance.new("TextButton")
  20. local p10 = Instance.new("TextButton")
  21. local p11 = Instance.new("TextButton")
  22. local p12 = Instance.new("TextButton")
  23. local p13 = Instance.new("TextButton")
  24. local p14 = Instance.new("TextButton")
  25. local p15 = Instance.new("TextButton")
  26. local p16 = Instance.new("TextButton")
  27. local p17 = Instance.new("TextButton")
  28. local p18 = Instance.new("TextButton")
  29. local p19 = Instance.new("TextButton")
  30. local p20 = Instance.new("TextButton")
  31. local GiveHonor = Instance.new("TextButton")
  32. local Ignore = Instance.new("Frame")
  33. local Infirmary = Instance.new("TextButton")
  34. local Ignore_2 = Instance.new("Frame")
  35. local Detention = Instance.new("TextButton")
  36. local Ignore_3 = Instance.new("Frame")
  37. local TpToPlr = Instance.new("TextButton")
  38. local Ignore_4 = Instance.new("Frame")
  39. local PSelected = Instance.new("TextBox")
  40. local Money = Instance.new("TextButton")
  41. local Ignore_5 = Instance.new("Frame")
  42. local Menu = Instance.new("TextButton")
  43.  
  44. -- Properties
  45.  
  46. HSDLGuiv1.Name = "HSDL Gui v1"
  47. HSDLGuiv1.Parent = game.CoreGui
  48.  
  49. Main.Name = "Main"
  50. Main.Parent = HSDLGuiv1
  51. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  52. Main.BorderColor3 = Color3.new(0, 0, 0)
  53. Main.BorderSizePixel = 2
  54. Main.Draggable = true
  55. Main.Position = UDim2.new(0, 325, 0, 75)
  56. Main.Size = UDim2.new(0, 360, 0, 300)
  57. Main.Active = true
  58. Main.Draggable = true
  59. Main.Visible = false
  60.  
  61. Title.Name = "Title"
  62. Title.Parent = Main
  63. Title.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  64. Title.BorderColor3 = Color3.new(0, 0, 0)
  65. Title.BorderSizePixel = 2
  66. Title.Size = UDim2.new(1, 0, 0, 40)
  67. Title.Font = Enum.Font.Code
  68. Title.FontSize = Enum.FontSize.Size14
  69. Title.Text = ""
  70. Title.TextSize = 14
  71.  
  72. Title_2.Name = "Title"
  73. Title_2.Parent = Title
  74. Title_2.BackgroundColor3 = Color3.new(1, 1, 1)
  75. Title_2.BackgroundTransparency = 1
  76. Title_2.Selectable = true
  77. Title_2.Size = UDim2.new(1, 0, 1, 0)
  78. Title_2.ZIndex = 2
  79. Title_2.Font = Enum.Font.SourceSansBold
  80. Title_2.FontSize = Enum.FontSize.Size14
  81. Title_2.Text = "HSDL Gui v1"
  82. Title_2.TextColor3 = Color3.new(1, 1, 1)
  83. Title_2.TextScaled = true
  84. Title_2.TextSize = 14
  85. Title_2.TextStrokeTransparency = 0
  86. Title_2.TextWrapped = true
  87.  
  88. TextLabel.Parent = Title_2
  89. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  90. TextLabel.BackgroundTransparency = 1
  91. TextLabel.Position = UDim2.new(0.00800000038, 0, 0.0199999996, 0)
  92. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  93. TextLabel.Font = Enum.Font.SourceSansBold
  94. TextLabel.FontSize = Enum.FontSize.Size14
  95. TextLabel.Text = "HSDL Gui v1"
  96. TextLabel.TextColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  97. TextLabel.TextScaled = true
  98. TextLabel.TextSize = 14
  99. TextLabel.TextStrokeTransparency = 0
  100. TextLabel.TextWrapped = true
  101.  
  102. Players.Name = "Players"
  103. Players.Parent = Main
  104. Players.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  105. Players.BorderColor3 = Color3.new(0, 0, 0)
  106. Players.Position = UDim2.new(0.5, 0, 0.100000001, 70)
  107. Players.Size = UDim2.new(0, 170, 0, 190)
  108. Players.CanvasSize = UDim2.new(0, 0, 3, 0)
  109. Players.ScrollBarThickness = 10
  110.  
  111. p1.Name = "p1"
  112. p1.Parent = Players
  113. p1.BackgroundColor3 = Color3.new(1, 1, 1)
  114. p1.BorderColor3 = Color3.new(0, 0, 0)
  115. p1.Position = UDim2.new(0, 0, 0, 40)
  116. p1.Size = UDim2.new(0, 160, 0, 30)
  117. p1.Font = Enum.Font.Code
  118. p1.FontSize = Enum.FontSize.Size18
  119. p1.Text = ""
  120. p1.TextColor3 = Color3.new(0, 0, 0)
  121. p1.TextSize = 15
  122.  
  123. p2.Name = "p2"
  124. p2.Parent = Players
  125. p2.BackgroundColor3 = Color3.new(1, 1, 1)
  126. p2.BorderColor3 = Color3.new(0, 0, 0)
  127. p2.Position = UDim2.new(0, 0, 0, 80)
  128. p2.Size = UDim2.new(0, 160, 0, 30)
  129. p2.Font = Enum.Font.Code
  130. p2.FontSize = Enum.FontSize.Size18
  131. p2.Text = ""
  132. p2.TextColor3 = Color3.new(0, 0, 0)
  133. p2.TextSize = 15
  134.  
  135. p3.Name = "p3"
  136. p3.Parent = Players
  137. p3.BackgroundColor3 = Color3.new(1, 1, 1)
  138. p3.BorderColor3 = Color3.new(0, 0, 0)
  139. p3.Size = UDim2.new(0, 160, 0, 30)
  140. p3.Font = Enum.Font.Code
  141. p3.FontSize = Enum.FontSize.Size18
  142. p3.Text = ""
  143. p3.TextColor3 = Color3.new(0, 0, 0)
  144. p3.TextSize = 15
  145.  
  146. p4.Name = "p4"
  147. p4.Parent = Players
  148. p4.BackgroundColor3 = Color3.new(1, 1, 1)
  149. p4.BorderColor3 = Color3.new(0, 0, 0)
  150. p4.Position = UDim2.new(0, 0, 0, 120)
  151. p4.Size = UDim2.new(0, 160, 0, 30)
  152. p4.Font = Enum.Font.Code
  153. p4.FontSize = Enum.FontSize.Size18
  154. p4.Text = ""
  155. p4.TextColor3 = Color3.new(0, 0, 0)
  156. p4.TextSize = 15
  157.  
  158. p5.Name = "p5"
  159. p5.Parent = Players
  160. p5.BackgroundColor3 = Color3.new(1, 1, 1)
  161. p5.BorderColor3 = Color3.new(0, 0, 0)
  162. p5.Position = UDim2.new(0, 0, 0, 160)
  163. p5.Size = UDim2.new(0, 160, 0, 30)
  164. p5.Font = Enum.Font.Code
  165. p5.FontSize = Enum.FontSize.Size18
  166. p5.Text = ""
  167. p5.TextColor3 = Color3.new(0, 0, 0)
  168. p5.TextSize = 15
  169.  
  170. p6.Name = "p6"
  171. p6.Parent = Players
  172. p6.BackgroundColor3 = Color3.new(1, 1, 1)
  173. p6.BorderColor3 = Color3.new(0, 0, 0)
  174. p6.Position = UDim2.new(0, 0, 0, 200)
  175. p6.Size = UDim2.new(0, 160, 0, 30)
  176. p6.Font = Enum.Font.Code
  177. p6.FontSize = Enum.FontSize.Size18
  178. p6.Text = ""
  179. p6.TextColor3 = Color3.new(0, 0, 0)
  180. p6.TextSize = 15
  181.  
  182. p7.Name = "p7"
  183. p7.Parent = Players
  184. p7.BackgroundColor3 = Color3.new(1, 1, 1)
  185. p7.BorderColor3 = Color3.new(0, 0, 0)
  186. p7.Position = UDim2.new(0, 0, 0, 240)
  187. p7.Size = UDim2.new(0, 160, 0, 30)
  188. p7.Font = Enum.Font.Code
  189. p7.FontSize = Enum.FontSize.Size18
  190. p7.Text = ""
  191. p7.TextColor3 = Color3.new(0, 0, 0)
  192. p7.TextSize = 15
  193.  
  194. p8.Name = "p8"
  195. p8.Parent = Players
  196. p8.BackgroundColor3 = Color3.new(1, 1, 1)
  197. p8.BorderColor3 = Color3.new(0, 0, 0)
  198. p8.Position = UDim2.new(0, 0, 0, 280)
  199. p8.Size = UDim2.new(0, 160, 0, 30)
  200. p8.Font = Enum.Font.Code
  201. p8.FontSize = Enum.FontSize.Size18
  202. p8.Text = ""
  203. p8.TextColor3 = Color3.new(0, 0, 0)
  204. p8.TextSize = 15
  205.  
  206. p9.Name = "p9"
  207. p9.Parent = Players
  208. p9.BackgroundColor3 = Color3.new(1, 1, 1)
  209. p9.BorderColor3 = Color3.new(0, 0, 0)
  210. p9.Position = UDim2.new(0, 0, 0, 320)
  211. p9.Size = UDim2.new(0, 160, 0, 30)
  212. p9.Font = Enum.Font.Code
  213. p9.FontSize = Enum.FontSize.Size18
  214. p9.Text = ""
  215. p9.TextColor3 = Color3.new(0, 0, 0)
  216. p9.TextSize = 15
  217.  
  218. p10.Name = "p10"
  219. p10.Parent = Players
  220. p10.BackgroundColor3 = Color3.new(1, 1, 1)
  221. p10.BorderColor3 = Color3.new(0, 0, 0)
  222. p10.Position = UDim2.new(0, 0, 0, 360)
  223. p10.Size = UDim2.new(0, 160, 0, 30)
  224. p10.Font = Enum.Font.Code
  225. p10.FontSize = Enum.FontSize.Size18
  226. p10.Text = ""
  227. p10.TextColor3 = Color3.new(0, 0, 0)
  228. p10.TextSize = 15
  229.  
  230. p11.Name = "p11"
  231. p11.Parent = Players
  232. p11.BackgroundColor3 = Color3.new(1, 1, 1)
  233. p11.BorderColor3 = Color3.new(0, 0, 0)
  234. p11.Position = UDim2.new(0, 0, 0, 400)
  235. p11.Size = UDim2.new(0, 160, 0, 30)
  236. p11.Font = Enum.Font.Code
  237. p11.FontSize = Enum.FontSize.Size18
  238. p11.Text = ""
  239. p11.TextColor3 = Color3.new(0, 0, 0)
  240. p11.TextSize = 15
  241.  
  242. p12.Name = "p12"
  243. p12.Parent = Players
  244. p12.BackgroundColor3 = Color3.new(1, 1, 1)
  245. p12.BorderColor3 = Color3.new(0, 0, 0)
  246. p12.Position = UDim2.new(0, 0, 0, 440)
  247. p12.Size = UDim2.new(0, 160, 0, 30)
  248. p12.Font = Enum.Font.Code
  249. p12.FontSize = Enum.FontSize.Size18
  250. p12.Text = ""
  251. p12.TextColor3 = Color3.new(0, 0, 0)
  252. p12.TextSize = 15
  253.  
  254. p13.Name = "p13"
  255. p13.Parent = Players
  256. p13.BackgroundColor3 = Color3.new(1, 1, 1)
  257. p13.BorderColor3 = Color3.new(0, 0, 0)
  258. p13.Position = UDim2.new(0, 0, 0, 480)
  259. p13.Size = UDim2.new(0, 160, 0, 30)
  260. p13.Font = Enum.Font.Code
  261. p13.FontSize = Enum.FontSize.Size18
  262. p13.Text = ""
  263. p13.TextColor3 = Color3.new(0, 0, 0)
  264. p13.TextSize = 15
  265.  
  266. p14.Name = "p14"
  267. p14.Parent = Players
  268. p14.BackgroundColor3 = Color3.new(1, 1, 1)
  269. p14.BorderColor3 = Color3.new(0, 0, 0)
  270. p14.Position = UDim2.new(0, 0, 0, 520)
  271. p14.Size = UDim2.new(0, 160, 0, 30)
  272. p14.Font = Enum.Font.Code
  273. p14.FontSize = Enum.FontSize.Size18
  274. p14.Text = ""
  275. p14.TextColor3 = Color3.new(0, 0, 0)
  276. p14.TextSize = 15
  277.  
  278. p15.Name = "p15"
  279. p15.Parent = Players
  280. p15.BackgroundColor3 = Color3.new(1, 1, 1)
  281. p15.BorderColor3 = Color3.new(0, 0, 0)
  282. p15.Position = UDim2.new(0, 0, 0, 560)
  283. p15.Size = UDim2.new(0, 160, 0, 30)
  284. p15.Font = Enum.Font.Code
  285. p15.FontSize = Enum.FontSize.Size18
  286. p15.Text = ""
  287. p15.TextColor3 = Color3.new(0, 0, 0)
  288. p15.TextSize = 15
  289.  
  290. p16.Name = "p16"
  291. p16.Parent = Players
  292. p16.BackgroundColor3 = Color3.new(1, 1, 1)
  293. p16.BorderColor3 = Color3.new(0, 0, 0)
  294. p16.Position = UDim2.new(0, 0, 0, 600)
  295. p16.Size = UDim2.new(0, 160, 0, 30)
  296. p16.Font = Enum.Font.Code
  297. p16.FontSize = Enum.FontSize.Size18
  298. p16.Text = ""
  299. p16.TextColor3 = Color3.new(0, 0, 0)
  300. p16.TextSize = 15
  301.  
  302. p17.Name = "p17"
  303. p17.Parent = Players
  304. p17.BackgroundColor3 = Color3.new(1, 1, 1)
  305. p17.BorderColor3 = Color3.new(0, 0, 0)
  306. p17.Position = UDim2.new(0, 0, 0, 640)
  307. p17.Size = UDim2.new(0, 160, 0, 30)
  308. p17.Font = Enum.Font.Code
  309. p17.FontSize = Enum.FontSize.Size18
  310. p17.Text = ""
  311. p17.TextColor3 = Color3.new(0, 0, 0)
  312. p17.TextSize = 15
  313.  
  314. p18.Name = "p18"
  315. p18.Parent = Players
  316. p18.BackgroundColor3 = Color3.new(1, 1, 1)
  317. p18.BorderColor3 = Color3.new(0, 0, 0)
  318. p18.Position = UDim2.new(0, 0, 0, 680)
  319. p18.Size = UDim2.new(0, 160, 0, 30)
  320. p18.Font = Enum.Font.Code
  321. p18.FontSize = Enum.FontSize.Size18
  322. p18.Text = ""
  323. p18.TextColor3 = Color3.new(0, 0, 0)
  324. p18.TextSize = 15
  325.  
  326. p19.Name = "p19"
  327. p19.Parent = Players
  328. p19.BackgroundColor3 = Color3.new(1, 1, 1)
  329. p19.BorderColor3 = Color3.new(0, 0, 0)
  330. p19.Position = UDim2.new(0, 0, 0, 720)
  331. p19.Size = UDim2.new(0, 160, 0, 30)
  332. p19.Font = Enum.Font.Code
  333. p19.FontSize = Enum.FontSize.Size18
  334. p19.Text = ""
  335. p19.TextColor3 = Color3.new(0, 0, 0)
  336. p19.TextSize = 15
  337.  
  338. p20.Name = "p20"
  339. p20.Parent = Players
  340. p20.BackgroundColor3 = Color3.new(1, 1, 1)
  341. p20.BorderColor3 = Color3.new(0, 0, 0)
  342. p20.Position = UDim2.new(0, 0, 0, 760)
  343. p20.Size = UDim2.new(0, 160, 0, 30)
  344. p20.Font = Enum.Font.Code
  345. p20.FontSize = Enum.FontSize.Size18
  346. p20.Text = ""
  347. p20.TextColor3 = Color3.new(0, 0, 0)
  348. p20.TextSize = 15
  349.  
  350. GiveHonor.Name = "GiveHonor"
  351. GiveHonor.Parent = Main
  352. GiveHonor.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  353. GiveHonor.BorderColor3 = Color3.new(0.666667, 1, 1)
  354. GiveHonor.BorderSizePixel = 0
  355. GiveHonor.Position = UDim2.new(0, 8, 0.100000001, 20)
  356. GiveHonor.Size = UDim2.new(0, 160, 0, 40)
  357. GiveHonor.Font = Enum.Font.SourceSansLight
  358. GiveHonor.FontSize = Enum.FontSize.Size14
  359. GiveHonor.Text = "Give Honor"
  360. GiveHonor.TextScaled = true
  361. GiveHonor.TextSize = 14
  362. GiveHonor.TextWrapped = true
  363.  
  364. Ignore.Name = "Ignore"
  365. Ignore.Parent = GiveHonor
  366. Ignore.Active = true
  367. Ignore.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
  368. Ignore.BorderColor3 = Color3.new(0.666667, 1, 1)
  369. Ignore.BorderSizePixel = 0
  370. Ignore.Position = UDim2.new(0, 0, 1.01999998, 0)
  371. Ignore.Size = UDim2.new(1, 0, 0.0500000007, 0)
  372.  
  373. Infirmary.Name = "Infirmary"
  374. Infirmary.Parent = Main
  375. Infirmary.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  376. Infirmary.BorderColor3 = Color3.new(0.666667, 1, 1)
  377. Infirmary.BorderSizePixel = 0
  378. Infirmary.Position = UDim2.new(0, 8, 0.5, 0)
  379. Infirmary.Size = UDim2.new(0, 160, 0, 40)
  380. Infirmary.Font = Enum.Font.SourceSansLight
  381. Infirmary.FontSize = Enum.FontSize.Size14
  382. Infirmary.Text = "Infirmary"
  383. Infirmary.TextScaled = true
  384. Infirmary.TextSize = 14
  385. Infirmary.TextWrapped = true
  386.  
  387. Ignore_2.Name = "Ignore"
  388. Ignore_2.Parent = Infirmary
  389. Ignore_2.Active = true
  390. Ignore_2.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
  391. Ignore_2.BorderColor3 = Color3.new(0.666667, 1, 1)
  392. Ignore_2.BorderSizePixel = 0
  393. Ignore_2.Position = UDim2.new(0, 0, 1.01999998, 0)
  394. Ignore_2.Size = UDim2.new(1, 0, 0.0500000007, 0)
  395.  
  396. Detention.Name = "Detention"
  397. Detention.Parent = Main
  398. Detention.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  399. Detention.BorderColor3 = Color3.new(0.666667, 1, 1)
  400. Detention.BorderSizePixel = 0
  401. Detention.Position = UDim2.new(0, 8, 0.300000012, 10)
  402. Detention.Size = UDim2.new(0, 160, 0, 40)
  403. Detention.Font = Enum.Font.SourceSansLight
  404. Detention.FontSize = Enum.FontSize.Size14
  405. Detention.Text = "Detention"
  406. Detention.TextScaled = true
  407. Detention.TextSize = 14
  408. Detention.TextWrapped = true
  409.  
  410. Ignore_3.Name = "Ignore"
  411. Ignore_3.Parent = Detention
  412. Ignore_3.Active = true
  413. Ignore_3.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
  414. Ignore_3.BorderColor3 = Color3.new(0.666667, 1, 1)
  415. Ignore_3.BorderSizePixel = 0
  416. Ignore_3.Position = UDim2.new(0, 0, 1.01999998, 0)
  417. Ignore_3.Size = UDim2.new(1, 0, 0.0500000007, 0)
  418.  
  419. TpToPlr.Name = "TpToPlr"
  420. TpToPlr.Parent = Main
  421. TpToPlr.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  422. TpToPlr.BorderColor3 = Color3.new(0.666667, 1, 1)
  423. TpToPlr.BorderSizePixel = 0
  424. TpToPlr.Position = UDim2.new(0, 8, 0.699999988, -10)
  425. TpToPlr.Size = UDim2.new(0, 160, 0, 40)
  426. TpToPlr.Font = Enum.Font.SourceSansLight
  427. TpToPlr.FontSize = Enum.FontSize.Size14
  428. TpToPlr.Text = "TP to Plr"
  429. TpToPlr.TextScaled = true
  430. TpToPlr.TextSize = 14
  431. TpToPlr.TextWrapped = true
  432.  
  433. Ignore_4.Name = "Ignore"
  434. Ignore_4.Parent = TpToPlr
  435. Ignore_4.Active = true
  436. Ignore_4.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
  437. Ignore_4.BorderColor3 = Color3.new(0.666667, 1, 1)
  438. Ignore_4.BorderSizePixel = 0
  439. Ignore_4.Position = UDim2.new(0, 0, 1.01999998, 0)
  440. Ignore_4.Size = UDim2.new(1, 0, 0.0500000007, 0)
  441.  
  442. PSelected.Name = "PSelected"
  443. PSelected.Parent = Main
  444. PSelected.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  445. PSelected.BorderColor3 = Color3.new(0, 0, 0)
  446. PSelected.BorderSizePixel = 2
  447. PSelected.Position = UDim2.new(0, 180, 0.100000001, 20)
  448. PSelected.Size = UDim2.new(0, 170, 0, 40)
  449. PSelected.Font = Enum.Font.Code
  450. PSelected.FontSize = Enum.FontSize.Size14
  451. PSelected.Text = "Player"
  452. PSelected.TextColor3 = Color3.new(0, 0, 0)
  453. PSelected.TextSize = 14
  454.  
  455. Money.Name = "Money"
  456. Money.Parent = Main
  457. Money.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
  458. Money.BorderColor3 = Color3.new(0.666667, 1, 1)
  459. Money.BorderSizePixel = 0
  460. Money.Position = UDim2.new(0, 8, 0.699999988, 40)
  461. Money.Size = UDim2.new(0, 160, 0, 40)
  462. Money.Font = Enum.Font.SourceSansLight
  463. Money.FontSize = Enum.FontSize.Size14
  464. Money.Text = "Money"
  465. Money.TextScaled = true
  466. Money.TextSize = 14
  467. Money.TextWrapped = true
  468.  
  469. Ignore_5.Name = "Ignore"
  470. Ignore_5.Parent = Money
  471. Ignore_5.Active = true
  472. Ignore_5.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
  473. Ignore_5.BorderColor3 = Color3.new(0.666667, 1, 1)
  474. Ignore_5.BorderSizePixel = 0
  475. Ignore_5.Position = UDim2.new(0, 0, 1.01999998, 0)
  476. Ignore_5.Size = UDim2.new(1, 0, 0.0500000007, 0)
  477.  
  478. Menu.Name = "Menu"
  479. Menu.Parent = HSDLGuiv1
  480. Menu.BackgroundColor3 = Color3.new(1, 1, 1)
  481. Menu.BorderColor3 = Color3.new(0, 0, 0)
  482. Menu.Position = UDim2.new(0, 0, 0.200000003, 150)
  483. Menu.Size = UDim2.new(0, 100, 0, 30)
  484. Menu.Font = Enum.Font.Code
  485. Menu.FontSize = Enum.FontSize.Size32
  486. Menu.Text = "Open"
  487. Menu.TextColor3 = Color3.new(0, 0, 0)
  488. Menu.TextSize = 32
  489.  
  490.  
  491. Menu.MouseButton1Click:connect(function()
  492. if Menu.Text == 'Close' then
  493. Main.Visible = false
  494. Menu.Text = 'Open'
  495. elseif Menu.Text == 'Open' then
  496. Main.Visible = true
  497. Menu.Text = 'Close'
  498. end
  499. end)
  500.  
  501. Main.Players.p1.MouseButton1Down:connect(function()
  502. PSelected.Text = p1.Text
  503. end)
  504. Main.Players.p2.MouseButton1Down:connect(function()
  505. PSelected.Text = p2.Text
  506. end)
  507. Main.Players.p3.MouseButton1Down:connect(function()
  508. PSelected.Text = p3.Text
  509. end)
  510. Main.Players.p4.MouseButton1Down:connect(function()
  511. PSelected.Text = p4.Text
  512. end)
  513. Main.Players.p5.MouseButton1Down:connect(function()
  514. PSelected.Text = p5.Text
  515. end)
  516. Main.Players.p6.MouseButton1Down:connect(function()
  517. PSelected.Text = p6.Text
  518. end)
  519. Main.Players.p7.MouseButton1Down:connect(function()
  520. PSelected.Text = p7.Text
  521. end)
  522. Main.Players.p8.MouseButton1Down:connect(function()
  523. PSelected.Text = p8.Text
  524. end)
  525. Main.Players.p9.MouseButton1Down:connect(function()
  526. PSelected.Text = p9.Text
  527. end)
  528. Main.Players.p10.MouseButton1Down:connect(function()
  529. PSelected.Text = p10.Text
  530. end)
  531. Main.Players.p11.MouseButton1Down:connect(function()
  532. PSelected.Text = p11.Text
  533. end)
  534. Main.Players.p12.MouseButton1Down:connect(function()
  535. PSelected.Text = p12.Text
  536. end)
  537. Main.Players.p13.MouseButton1Down:connect(function()
  538. PSelected.Text = p13.Text
  539. end)
  540. Main.Players.p14.MouseButton1Down:connect(function()
  541. Main.PSelected.Text = p14.Text
  542. end)
  543. Main.Players.p15.MouseButton1Down:connect(function()
  544. Main.PSelected.Text = p15.Text
  545. end)
  546. Main.Players.p16.MouseButton1Down:connect(function()
  547. Main.PSelected.Text = p16.Text
  548. end)
  549. Main.Players.p17.MouseButton1Down:connect(function()
  550. Main.PSelected.Text = p17.Text
  551. end)
  552. Main.Players.p18.MouseButton1Down:connect(function()
  553. Main.PSelected.Text = p18.Text
  554. end)
  555. Main.Players.p19.MouseButton1Down:connect(function()
  556. Main.PSelected.Text = p19.Text
  557. end)
  558. Main.Players.p20.MouseButton1Down:connect(function()
  559. Main.PSelected.Text = p20.Text
  560. end)
  561. local buttons = {
  562. Main.Players.p1,
  563. Main.Players.p2,
  564. Main.Players.p3,
  565. Main.Players.p4,
  566. Main.Players.p5,
  567. Main.Players.p6,
  568. Main.Players.p7,
  569. Main.Players.p8,
  570. Main.Players.p9,
  571. Main.Players.p10,
  572. Main.Players.p11,
  573. Main.Players.p12,
  574. Main.Players.p13,
  575. Main.Players.p14,
  576. Main.Players.p15,
  577. Main.Players.p16,
  578. Main.Players.p17,
  579. Main.Players.p18,
  580. Main.Players.p19,
  581. Main.Players.p20
  582. }
  583. for i, v in pairs(game.Players:GetChildren()) do
  584. buttons[i].Text = v.Name
  585. buttons[i].Visible = true
  586. end
  587. game.Players.PlayerRemoving:connect(function()
  588. for i, v in pairs(game.Players:GetChildren()) do
  589. buttons[i].Text = v.Name
  590. buttons[i].Visible = true
  591. end
  592. end)
  593. game.Players.PlayerAdded:connect(function()
  594. for i, v in pairs(game.Players:GetChildren()) do
  595. buttons[i].Text = v.Name
  596. buttons[i].Visible = true
  597. end
  598. end)
  599.  
  600. Main.Detention.MouseButton1Down:connect(function()
  601. game.ReplicatedStorage.Detention:FireServer(game.Players[Main.PSelected.Text])
  602. end)
  603.  
  604. Main.Infirmary.MouseButton1Down:connect(function()
  605. game.ReplicatedStorage.Infirmary:FireServer(game.Players[Main.PSelected.Text])
  606. end)
  607.  
  608. Main.GiveHonor.MouseButton1Down:connect(function()
  609. game.ReplicatedStorage.GetHonor:FireServer(game.Players[Main.PSelected.Text])
  610. end)
  611.  
  612. Main.TpToPlr.MouseButton1Down:connect(function()
  613. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace[Main.PSelected.Text].HumanoidRootPart.CFrame
  614. end)
  615.  
  616. Main.Money.MouseButton1Down:connect(function()
  617. for i = 1, 20000 do
  618. game.ReplicatedStorage.GetHonor:FireServer(game.Players[Main.PSelected.Text])
  619. end
  620. end)
  621.  
  622. print("Successfully Loaded!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement