Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Variables
- local ui = script.Parent
- local button = ui.MenuButton
- local frame = ui.MainFrame
- local exit = frame.Exit
- --// Functions
- if not game.Players.LocalPlayer.PlayerGui:FindFirstChild('IntroUI') then
- script.Parent.MenuButton.Visible = true
- end
- script.Parent.MainFrame.SelectionsShow.Information.PlayerName.Text = game.Players.LocalPlayer.Name
- script.Parent.MainFrame.SelectionsShow.Information.Rank.Text = "Rank: ".. game.Players.LocalPlayer:GetRoleInGroup(4654305)
- script.Parent.MainFrame.SelectionsShow.Information.RobloxId.Text = "Id: ".. game.Players:GetUserIdFromNameAsync(game.Players.LocalPlayer.Name)
- button.MouseButton1Click:Connect(function()
- frame.Visible = true
- end)
- exit.MouseButton1Click:Connect(function()
- frame.Visible = false
- end)
- script.Parent.MainFrame.Selections.Rules.MouseButton1Click:Connect(function()
- script.Parent.MainFrame.SelectionsShow.Rules.Visible = true
- script.Parent.MainFrame.SelectionsShow.Settings.Visible = false
- script.Parent.MainFrame.SelectionsShow.Information.Visible = false
- end)
- script.Parent.MainFrame.Selections.Settings.MouseButton1Click:Connect(function()
- script.Parent.MainFrame.SelectionsShow.Settings.Visible = true
- script.Parent.MainFrame.SelectionsShow.Rules.Visible = false
- script.Parent.MainFrame.SelectionsShow.Information.Visible = false
- end)
- script.Parent.MainFrame.Selections.Information.MouseButton1Click:Connect(function()
- script.Parent.MainFrame.SelectionsShow.Information.Visible = true
- script.Parent.MainFrame.SelectionsShow.Rules.Visible = false
- script.Parent.MainFrame.SelectionsShow.Settings.Visible = false
- end)
- script.Parent.MainFrame.SelectionsShow.Settings.HideOn.MouseButton1Click:Connect(function()
- if game.Players.LocalPlayer:GetRankInGroup(4654305) >= 180 then
- game.ReplicatedStorage.RankTagOn:FireServer()
- end
- end)
- script.Parent.MainFrame.SelectionsShow.Settings.HideOff.MouseButton1Click:Connect(function()
- if game.Players.LocalPlayer:GetRankInGroup(4654305) >= 180 then
- game.ReplicatedStorage.RankTagOff:FireServer()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement