Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("High School Dorm Life Gui v1")
- -- Objects
- local HSDLGuiv1 = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Title = Instance.new("TextButton")
- local Title_2 = Instance.new("TextLabel")
- local TextLabel = Instance.new("TextLabel")
- local Players = Instance.new("ScrollingFrame")
- local p1 = Instance.new("TextButton")
- local p2 = Instance.new("TextButton")
- local p3 = Instance.new("TextButton")
- local p4 = Instance.new("TextButton")
- local p5 = Instance.new("TextButton")
- local p6 = Instance.new("TextButton")
- local p7 = Instance.new("TextButton")
- local p8 = Instance.new("TextButton")
- local p9 = Instance.new("TextButton")
- local p10 = Instance.new("TextButton")
- local p11 = Instance.new("TextButton")
- local p12 = Instance.new("TextButton")
- local p13 = Instance.new("TextButton")
- local p14 = Instance.new("TextButton")
- local p15 = Instance.new("TextButton")
- local p16 = Instance.new("TextButton")
- local p17 = Instance.new("TextButton")
- local p18 = Instance.new("TextButton")
- local p19 = Instance.new("TextButton")
- local p20 = Instance.new("TextButton")
- local GiveHonor = Instance.new("TextButton")
- local Ignore = Instance.new("Frame")
- local Infirmary = Instance.new("TextButton")
- local Ignore_2 = Instance.new("Frame")
- local Detention = Instance.new("TextButton")
- local Ignore_3 = Instance.new("Frame")
- local TpToPlr = Instance.new("TextButton")
- local Ignore_4 = Instance.new("Frame")
- local PSelected = Instance.new("TextBox")
- local Money = Instance.new("TextButton")
- local Ignore_5 = Instance.new("Frame")
- local Menu = Instance.new("TextButton")
- -- Properties
- HSDLGuiv1.Name = "HSDL Gui v1"
- HSDLGuiv1.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = HSDLGuiv1
- Main.BackgroundColor3 = Color3.new(1, 1, 1)
- Main.BorderColor3 = Color3.new(0, 0, 0)
- Main.BorderSizePixel = 2
- Main.Draggable = true
- Main.Position = UDim2.new(0, 325, 0, 75)
- Main.Size = UDim2.new(0, 360, 0, 300)
- Main.Active = true
- Main.Draggable = true
- Main.Visible = false
- Title.Name = "Title"
- Title.Parent = Main
- Title.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- Title.BorderColor3 = Color3.new(0, 0, 0)
- Title.BorderSizePixel = 2
- Title.Size = UDim2.new(1, 0, 0, 40)
- Title.Font = Enum.Font.Code
- Title.FontSize = Enum.FontSize.Size14
- Title.Text = ""
- Title.TextSize = 14
- Title_2.Name = "Title"
- Title_2.Parent = Title
- Title_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Title_2.BackgroundTransparency = 1
- Title_2.Selectable = true
- Title_2.Size = UDim2.new(1, 0, 1, 0)
- Title_2.ZIndex = 2
- Title_2.Font = Enum.Font.SourceSansBold
- Title_2.FontSize = Enum.FontSize.Size14
- Title_2.Text = "HSDL Gui v1"
- Title_2.TextColor3 = Color3.new(1, 1, 1)
- Title_2.TextScaled = true
- Title_2.TextSize = 14
- Title_2.TextStrokeTransparency = 0
- Title_2.TextWrapped = true
- TextLabel.Parent = Title_2
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.00800000038, 0, 0.0199999996, 0)
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Font = Enum.Font.SourceSansBold
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "HSDL Gui v1"
- TextLabel.TextColor3 = Color3.new(0.247059, 0.247059, 0.247059)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextStrokeTransparency = 0
- TextLabel.TextWrapped = true
- Players.Name = "Players"
- Players.Parent = Main
- Players.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- Players.BorderColor3 = Color3.new(0, 0, 0)
- Players.Position = UDim2.new(0.5, 0, 0.100000001, 70)
- Players.Size = UDim2.new(0, 170, 0, 190)
- Players.CanvasSize = UDim2.new(0, 0, 3, 0)
- Players.ScrollBarThickness = 10
- p1.Name = "p1"
- p1.Parent = Players
- p1.BackgroundColor3 = Color3.new(1, 1, 1)
- p1.BorderColor3 = Color3.new(0, 0, 0)
- p1.Position = UDim2.new(0, 0, 0, 40)
- p1.Size = UDim2.new(0, 160, 0, 30)
- p1.Font = Enum.Font.Code
- p1.FontSize = Enum.FontSize.Size18
- p1.Text = ""
- p1.TextColor3 = Color3.new(0, 0, 0)
- p1.TextSize = 15
- p2.Name = "p2"
- p2.Parent = Players
- p2.BackgroundColor3 = Color3.new(1, 1, 1)
- p2.BorderColor3 = Color3.new(0, 0, 0)
- p2.Position = UDim2.new(0, 0, 0, 80)
- p2.Size = UDim2.new(0, 160, 0, 30)
- p2.Font = Enum.Font.Code
- p2.FontSize = Enum.FontSize.Size18
- p2.Text = ""
- p2.TextColor3 = Color3.new(0, 0, 0)
- p2.TextSize = 15
- p3.Name = "p3"
- p3.Parent = Players
- p3.BackgroundColor3 = Color3.new(1, 1, 1)
- p3.BorderColor3 = Color3.new(0, 0, 0)
- p3.Size = UDim2.new(0, 160, 0, 30)
- p3.Font = Enum.Font.Code
- p3.FontSize = Enum.FontSize.Size18
- p3.Text = ""
- p3.TextColor3 = Color3.new(0, 0, 0)
- p3.TextSize = 15
- p4.Name = "p4"
- p4.Parent = Players
- p4.BackgroundColor3 = Color3.new(1, 1, 1)
- p4.BorderColor3 = Color3.new(0, 0, 0)
- p4.Position = UDim2.new(0, 0, 0, 120)
- p4.Size = UDim2.new(0, 160, 0, 30)
- p4.Font = Enum.Font.Code
- p4.FontSize = Enum.FontSize.Size18
- p4.Text = ""
- p4.TextColor3 = Color3.new(0, 0, 0)
- p4.TextSize = 15
- p5.Name = "p5"
- p5.Parent = Players
- p5.BackgroundColor3 = Color3.new(1, 1, 1)
- p5.BorderColor3 = Color3.new(0, 0, 0)
- p5.Position = UDim2.new(0, 0, 0, 160)
- p5.Size = UDim2.new(0, 160, 0, 30)
- p5.Font = Enum.Font.Code
- p5.FontSize = Enum.FontSize.Size18
- p5.Text = ""
- p5.TextColor3 = Color3.new(0, 0, 0)
- p5.TextSize = 15
- p6.Name = "p6"
- p6.Parent = Players
- p6.BackgroundColor3 = Color3.new(1, 1, 1)
- p6.BorderColor3 = Color3.new(0, 0, 0)
- p6.Position = UDim2.new(0, 0, 0, 200)
- p6.Size = UDim2.new(0, 160, 0, 30)
- p6.Font = Enum.Font.Code
- p6.FontSize = Enum.FontSize.Size18
- p6.Text = ""
- p6.TextColor3 = Color3.new(0, 0, 0)
- p6.TextSize = 15
- p7.Name = "p7"
- p7.Parent = Players
- p7.BackgroundColor3 = Color3.new(1, 1, 1)
- p7.BorderColor3 = Color3.new(0, 0, 0)
- p7.Position = UDim2.new(0, 0, 0, 240)
- p7.Size = UDim2.new(0, 160, 0, 30)
- p7.Font = Enum.Font.Code
- p7.FontSize = Enum.FontSize.Size18
- p7.Text = ""
- p7.TextColor3 = Color3.new(0, 0, 0)
- p7.TextSize = 15
- p8.Name = "p8"
- p8.Parent = Players
- p8.BackgroundColor3 = Color3.new(1, 1, 1)
- p8.BorderColor3 = Color3.new(0, 0, 0)
- p8.Position = UDim2.new(0, 0, 0, 280)
- p8.Size = UDim2.new(0, 160, 0, 30)
- p8.Font = Enum.Font.Code
- p8.FontSize = Enum.FontSize.Size18
- p8.Text = ""
- p8.TextColor3 = Color3.new(0, 0, 0)
- p8.TextSize = 15
- p9.Name = "p9"
- p9.Parent = Players
- p9.BackgroundColor3 = Color3.new(1, 1, 1)
- p9.BorderColor3 = Color3.new(0, 0, 0)
- p9.Position = UDim2.new(0, 0, 0, 320)
- p9.Size = UDim2.new(0, 160, 0, 30)
- p9.Font = Enum.Font.Code
- p9.FontSize = Enum.FontSize.Size18
- p9.Text = ""
- p9.TextColor3 = Color3.new(0, 0, 0)
- p9.TextSize = 15
- p10.Name = "p10"
- p10.Parent = Players
- p10.BackgroundColor3 = Color3.new(1, 1, 1)
- p10.BorderColor3 = Color3.new(0, 0, 0)
- p10.Position = UDim2.new(0, 0, 0, 360)
- p10.Size = UDim2.new(0, 160, 0, 30)
- p10.Font = Enum.Font.Code
- p10.FontSize = Enum.FontSize.Size18
- p10.Text = ""
- p10.TextColor3 = Color3.new(0, 0, 0)
- p10.TextSize = 15
- p11.Name = "p11"
- p11.Parent = Players
- p11.BackgroundColor3 = Color3.new(1, 1, 1)
- p11.BorderColor3 = Color3.new(0, 0, 0)
- p11.Position = UDim2.new(0, 0, 0, 400)
- p11.Size = UDim2.new(0, 160, 0, 30)
- p11.Font = Enum.Font.Code
- p11.FontSize = Enum.FontSize.Size18
- p11.Text = ""
- p11.TextColor3 = Color3.new(0, 0, 0)
- p11.TextSize = 15
- p12.Name = "p12"
- p12.Parent = Players
- p12.BackgroundColor3 = Color3.new(1, 1, 1)
- p12.BorderColor3 = Color3.new(0, 0, 0)
- p12.Position = UDim2.new(0, 0, 0, 440)
- p12.Size = UDim2.new(0, 160, 0, 30)
- p12.Font = Enum.Font.Code
- p12.FontSize = Enum.FontSize.Size18
- p12.Text = ""
- p12.TextColor3 = Color3.new(0, 0, 0)
- p12.TextSize = 15
- p13.Name = "p13"
- p13.Parent = Players
- p13.BackgroundColor3 = Color3.new(1, 1, 1)
- p13.BorderColor3 = Color3.new(0, 0, 0)
- p13.Position = UDim2.new(0, 0, 0, 480)
- p13.Size = UDim2.new(0, 160, 0, 30)
- p13.Font = Enum.Font.Code
- p13.FontSize = Enum.FontSize.Size18
- p13.Text = ""
- p13.TextColor3 = Color3.new(0, 0, 0)
- p13.TextSize = 15
- p14.Name = "p14"
- p14.Parent = Players
- p14.BackgroundColor3 = Color3.new(1, 1, 1)
- p14.BorderColor3 = Color3.new(0, 0, 0)
- p14.Position = UDim2.new(0, 0, 0, 520)
- p14.Size = UDim2.new(0, 160, 0, 30)
- p14.Font = Enum.Font.Code
- p14.FontSize = Enum.FontSize.Size18
- p14.Text = ""
- p14.TextColor3 = Color3.new(0, 0, 0)
- p14.TextSize = 15
- p15.Name = "p15"
- p15.Parent = Players
- p15.BackgroundColor3 = Color3.new(1, 1, 1)
- p15.BorderColor3 = Color3.new(0, 0, 0)
- p15.Position = UDim2.new(0, 0, 0, 560)
- p15.Size = UDim2.new(0, 160, 0, 30)
- p15.Font = Enum.Font.Code
- p15.FontSize = Enum.FontSize.Size18
- p15.Text = ""
- p15.TextColor3 = Color3.new(0, 0, 0)
- p15.TextSize = 15
- p16.Name = "p16"
- p16.Parent = Players
- p16.BackgroundColor3 = Color3.new(1, 1, 1)
- p16.BorderColor3 = Color3.new(0, 0, 0)
- p16.Position = UDim2.new(0, 0, 0, 600)
- p16.Size = UDim2.new(0, 160, 0, 30)
- p16.Font = Enum.Font.Code
- p16.FontSize = Enum.FontSize.Size18
- p16.Text = ""
- p16.TextColor3 = Color3.new(0, 0, 0)
- p16.TextSize = 15
- p17.Name = "p17"
- p17.Parent = Players
- p17.BackgroundColor3 = Color3.new(1, 1, 1)
- p17.BorderColor3 = Color3.new(0, 0, 0)
- p17.Position = UDim2.new(0, 0, 0, 640)
- p17.Size = UDim2.new(0, 160, 0, 30)
- p17.Font = Enum.Font.Code
- p17.FontSize = Enum.FontSize.Size18
- p17.Text = ""
- p17.TextColor3 = Color3.new(0, 0, 0)
- p17.TextSize = 15
- p18.Name = "p18"
- p18.Parent = Players
- p18.BackgroundColor3 = Color3.new(1, 1, 1)
- p18.BorderColor3 = Color3.new(0, 0, 0)
- p18.Position = UDim2.new(0, 0, 0, 680)
- p18.Size = UDim2.new(0, 160, 0, 30)
- p18.Font = Enum.Font.Code
- p18.FontSize = Enum.FontSize.Size18
- p18.Text = ""
- p18.TextColor3 = Color3.new(0, 0, 0)
- p18.TextSize = 15
- p19.Name = "p19"
- p19.Parent = Players
- p19.BackgroundColor3 = Color3.new(1, 1, 1)
- p19.BorderColor3 = Color3.new(0, 0, 0)
- p19.Position = UDim2.new(0, 0, 0, 720)
- p19.Size = UDim2.new(0, 160, 0, 30)
- p19.Font = Enum.Font.Code
- p19.FontSize = Enum.FontSize.Size18
- p19.Text = ""
- p19.TextColor3 = Color3.new(0, 0, 0)
- p19.TextSize = 15
- p20.Name = "p20"
- p20.Parent = Players
- p20.BackgroundColor3 = Color3.new(1, 1, 1)
- p20.BorderColor3 = Color3.new(0, 0, 0)
- p20.Position = UDim2.new(0, 0, 0, 760)
- p20.Size = UDim2.new(0, 160, 0, 30)
- p20.Font = Enum.Font.Code
- p20.FontSize = Enum.FontSize.Size18
- p20.Text = ""
- p20.TextColor3 = Color3.new(0, 0, 0)
- p20.TextSize = 15
- GiveHonor.Name = "GiveHonor"
- GiveHonor.Parent = Main
- GiveHonor.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- GiveHonor.BorderColor3 = Color3.new(0.666667, 1, 1)
- GiveHonor.BorderSizePixel = 0
- GiveHonor.Position = UDim2.new(0, 8, 0.100000001, 20)
- GiveHonor.Size = UDim2.new(0, 160, 0, 40)
- GiveHonor.Font = Enum.Font.SourceSansLight
- GiveHonor.FontSize = Enum.FontSize.Size14
- GiveHonor.Text = "Give Honor"
- GiveHonor.TextScaled = true
- GiveHonor.TextSize = 14
- GiveHonor.TextWrapped = true
- Ignore.Name = "Ignore"
- Ignore.Parent = GiveHonor
- Ignore.Active = true
- Ignore.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
- Ignore.BorderColor3 = Color3.new(0.666667, 1, 1)
- Ignore.BorderSizePixel = 0
- Ignore.Position = UDim2.new(0, 0, 1.01999998, 0)
- Ignore.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Infirmary.Name = "Infirmary"
- Infirmary.Parent = Main
- Infirmary.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- Infirmary.BorderColor3 = Color3.new(0.666667, 1, 1)
- Infirmary.BorderSizePixel = 0
- Infirmary.Position = UDim2.new(0, 8, 0.5, 0)
- Infirmary.Size = UDim2.new(0, 160, 0, 40)
- Infirmary.Font = Enum.Font.SourceSansLight
- Infirmary.FontSize = Enum.FontSize.Size14
- Infirmary.Text = "Infirmary"
- Infirmary.TextScaled = true
- Infirmary.TextSize = 14
- Infirmary.TextWrapped = true
- Ignore_2.Name = "Ignore"
- Ignore_2.Parent = Infirmary
- Ignore_2.Active = true
- Ignore_2.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
- Ignore_2.BorderColor3 = Color3.new(0.666667, 1, 1)
- Ignore_2.BorderSizePixel = 0
- Ignore_2.Position = UDim2.new(0, 0, 1.01999998, 0)
- Ignore_2.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Detention.Name = "Detention"
- Detention.Parent = Main
- Detention.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- Detention.BorderColor3 = Color3.new(0.666667, 1, 1)
- Detention.BorderSizePixel = 0
- Detention.Position = UDim2.new(0, 8, 0.300000012, 10)
- Detention.Size = UDim2.new(0, 160, 0, 40)
- Detention.Font = Enum.Font.SourceSansLight
- Detention.FontSize = Enum.FontSize.Size14
- Detention.Text = "Detention"
- Detention.TextScaled = true
- Detention.TextSize = 14
- Detention.TextWrapped = true
- Ignore_3.Name = "Ignore"
- Ignore_3.Parent = Detention
- Ignore_3.Active = true
- Ignore_3.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
- Ignore_3.BorderColor3 = Color3.new(0.666667, 1, 1)
- Ignore_3.BorderSizePixel = 0
- Ignore_3.Position = UDim2.new(0, 0, 1.01999998, 0)
- Ignore_3.Size = UDim2.new(1, 0, 0.0500000007, 0)
- TpToPlr.Name = "TpToPlr"
- TpToPlr.Parent = Main
- TpToPlr.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- TpToPlr.BorderColor3 = Color3.new(0.666667, 1, 1)
- TpToPlr.BorderSizePixel = 0
- TpToPlr.Position = UDim2.new(0, 8, 0.699999988, -10)
- TpToPlr.Size = UDim2.new(0, 160, 0, 40)
- TpToPlr.Font = Enum.Font.SourceSansLight
- TpToPlr.FontSize = Enum.FontSize.Size14
- TpToPlr.Text = "TP to Plr"
- TpToPlr.TextScaled = true
- TpToPlr.TextSize = 14
- TpToPlr.TextWrapped = true
- Ignore_4.Name = "Ignore"
- Ignore_4.Parent = TpToPlr
- Ignore_4.Active = true
- Ignore_4.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
- Ignore_4.BorderColor3 = Color3.new(0.666667, 1, 1)
- Ignore_4.BorderSizePixel = 0
- Ignore_4.Position = UDim2.new(0, 0, 1.01999998, 0)
- Ignore_4.Size = UDim2.new(1, 0, 0.0500000007, 0)
- PSelected.Name = "PSelected"
- PSelected.Parent = Main
- PSelected.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- PSelected.BorderColor3 = Color3.new(0, 0, 0)
- PSelected.BorderSizePixel = 2
- PSelected.Position = UDim2.new(0, 180, 0.100000001, 20)
- PSelected.Size = UDim2.new(0, 170, 0, 40)
- PSelected.Font = Enum.Font.Code
- PSelected.FontSize = Enum.FontSize.Size14
- PSelected.Text = "Player"
- PSelected.TextColor3 = Color3.new(0, 0, 0)
- PSelected.TextSize = 14
- Money.Name = "Money"
- Money.Parent = Main
- Money.BackgroundColor3 = Color3.new(0.333333, 0.666667, 1)
- Money.BorderColor3 = Color3.new(0.666667, 1, 1)
- Money.BorderSizePixel = 0
- Money.Position = UDim2.new(0, 8, 0.699999988, 40)
- Money.Size = UDim2.new(0, 160, 0, 40)
- Money.Font = Enum.Font.SourceSansLight
- Money.FontSize = Enum.FontSize.Size14
- Money.Text = "Money"
- Money.TextScaled = true
- Money.TextSize = 14
- Money.TextWrapped = true
- Ignore_5.Name = "Ignore"
- Ignore_5.Parent = Money
- Ignore_5.Active = true
- Ignore_5.BackgroundColor3 = Color3.new(0.427451, 0.431373, 0.423529)
- Ignore_5.BorderColor3 = Color3.new(0.666667, 1, 1)
- Ignore_5.BorderSizePixel = 0
- Ignore_5.Position = UDim2.new(0, 0, 1.01999998, 0)
- Ignore_5.Size = UDim2.new(1, 0, 0.0500000007, 0)
- Menu.Name = "Menu"
- Menu.Parent = HSDLGuiv1
- Menu.BackgroundColor3 = Color3.new(1, 1, 1)
- Menu.BorderColor3 = Color3.new(0, 0, 0)
- Menu.Position = UDim2.new(0, 0, 0.200000003, 150)
- Menu.Size = UDim2.new(0, 100, 0, 30)
- Menu.Font = Enum.Font.Code
- Menu.FontSize = Enum.FontSize.Size32
- Menu.Text = "Open"
- Menu.TextColor3 = Color3.new(0, 0, 0)
- Menu.TextSize = 32
- Menu.MouseButton1Click:connect(function()
- if Menu.Text == 'Close' then
- Main.Visible = false
- Menu.Text = 'Open'
- elseif Menu.Text == 'Open' then
- Main.Visible = true
- Menu.Text = 'Close'
- end
- end)
- Main.Players.p1.MouseButton1Down:connect(function()
- PSelected.Text = p1.Text
- end)
- Main.Players.p2.MouseButton1Down:connect(function()
- PSelected.Text = p2.Text
- end)
- Main.Players.p3.MouseButton1Down:connect(function()
- PSelected.Text = p3.Text
- end)
- Main.Players.p4.MouseButton1Down:connect(function()
- PSelected.Text = p4.Text
- end)
- Main.Players.p5.MouseButton1Down:connect(function()
- PSelected.Text = p5.Text
- end)
- Main.Players.p6.MouseButton1Down:connect(function()
- PSelected.Text = p6.Text
- end)
- Main.Players.p7.MouseButton1Down:connect(function()
- PSelected.Text = p7.Text
- end)
- Main.Players.p8.MouseButton1Down:connect(function()
- PSelected.Text = p8.Text
- end)
- Main.Players.p9.MouseButton1Down:connect(function()
- PSelected.Text = p9.Text
- end)
- Main.Players.p10.MouseButton1Down:connect(function()
- PSelected.Text = p10.Text
- end)
- Main.Players.p11.MouseButton1Down:connect(function()
- PSelected.Text = p11.Text
- end)
- Main.Players.p12.MouseButton1Down:connect(function()
- PSelected.Text = p12.Text
- end)
- Main.Players.p13.MouseButton1Down:connect(function()
- PSelected.Text = p13.Text
- end)
- Main.Players.p14.MouseButton1Down:connect(function()
- Main.PSelected.Text = p14.Text
- end)
- Main.Players.p15.MouseButton1Down:connect(function()
- Main.PSelected.Text = p15.Text
- end)
- Main.Players.p16.MouseButton1Down:connect(function()
- Main.PSelected.Text = p16.Text
- end)
- Main.Players.p17.MouseButton1Down:connect(function()
- Main.PSelected.Text = p17.Text
- end)
- Main.Players.p18.MouseButton1Down:connect(function()
- Main.PSelected.Text = p18.Text
- end)
- Main.Players.p19.MouseButton1Down:connect(function()
- Main.PSelected.Text = p19.Text
- end)
- Main.Players.p20.MouseButton1Down:connect(function()
- Main.PSelected.Text = p20.Text
- end)
- local buttons = {
- Main.Players.p1,
- Main.Players.p2,
- Main.Players.p3,
- Main.Players.p4,
- Main.Players.p5,
- Main.Players.p6,
- Main.Players.p7,
- Main.Players.p8,
- Main.Players.p9,
- Main.Players.p10,
- Main.Players.p11,
- Main.Players.p12,
- Main.Players.p13,
- Main.Players.p14,
- Main.Players.p15,
- Main.Players.p16,
- Main.Players.p17,
- Main.Players.p18,
- Main.Players.p19,
- Main.Players.p20
- }
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- game.Players.PlayerRemoving:connect(function()
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- end)
- game.Players.PlayerAdded:connect(function()
- for i, v in pairs(game.Players:GetChildren()) do
- buttons[i].Text = v.Name
- buttons[i].Visible = true
- end
- end)
- Main.Detention.MouseButton1Down:connect(function()
- game.ReplicatedStorage.Detention:FireServer(game.Players[Main.PSelected.Text])
- end)
- Main.Infirmary.MouseButton1Down:connect(function()
- game.ReplicatedStorage.Infirmary:FireServer(game.Players[Main.PSelected.Text])
- end)
- Main.GiveHonor.MouseButton1Down:connect(function()
- game.ReplicatedStorage.GetHonor:FireServer(game.Players[Main.PSelected.Text])
- end)
- Main.TpToPlr.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace[Main.PSelected.Text].HumanoidRootPart.CFrame
- end)
- Main.Money.MouseButton1Down:connect(function()
- for i = 1, 20000 do
- game.ReplicatedStorage.GetHonor:FireServer(game.Players[Main.PSelected.Text])
- end
- end)
- print("Successfully Loaded!")
- ----------- End of Script ( Made by TopherX ) -----------
Add Comment
Please, Sign In to add comment