Advertisement
Aquarius_Raverus

stuff

Jul 19th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.05 KB | None | 0 0
  1. --// Variables
  2.  
  3. local ui = script.Parent
  4. local button = ui.MenuButton
  5. local frame = ui.MainFrame
  6. local exit = frame.Exit
  7.  
  8.  
  9. --// Functions
  10.  
  11. if not game.Players.LocalPlayer.PlayerGui:FindFirstChild('IntroUI') then
  12.     script.Parent.MenuButton.Visible = true
  13. end
  14.  
  15.  
  16. script.Parent.MainFrame.SelectionsShow.Information.PlayerName.Text = game.Players.LocalPlayer.Name
  17. script.Parent.MainFrame.SelectionsShow.Information.Rank.Text = "Rank: ".. game.Players.LocalPlayer:GetRoleInGroup(4654305)
  18. script.Parent.MainFrame.SelectionsShow.Information.RobloxId.Text = "Id: ".. game.Players:GetUserIdFromNameAsync(game.Players.LocalPlayer.Name)
  19.  
  20. button.MouseButton1Click:Connect(function()
  21.     frame.Visible = true
  22. end)
  23.  
  24. exit.MouseButton1Click:Connect(function()
  25.     frame.Visible = false
  26. end)
  27.  
  28. script.Parent.MainFrame.Selections.Rules.MouseButton1Click:Connect(function()
  29.     script.Parent.MainFrame.SelectionsShow.Rules.Visible = true
  30.     script.Parent.MainFrame.SelectionsShow.Settings.Visible = false
  31.     script.Parent.MainFrame.SelectionsShow.Information.Visible = false
  32. end)
  33.  
  34. script.Parent.MainFrame.Selections.Settings.MouseButton1Click:Connect(function()
  35.     script.Parent.MainFrame.SelectionsShow.Settings.Visible = true
  36.     script.Parent.MainFrame.SelectionsShow.Rules.Visible = false
  37.     script.Parent.MainFrame.SelectionsShow.Information.Visible = false
  38. end)
  39.  
  40. script.Parent.MainFrame.Selections.Information.MouseButton1Click:Connect(function()
  41.     script.Parent.MainFrame.SelectionsShow.Information.Visible = true
  42.     script.Parent.MainFrame.SelectionsShow.Rules.Visible = false
  43.     script.Parent.MainFrame.SelectionsShow.Settings.Visible = false
  44. end)
  45.  
  46. script.Parent.MainFrame.SelectionsShow.Settings.HideOn.MouseButton1Click:Connect(function()
  47.     if game.Players.LocalPlayer:GetRankInGroup(4654305) >= 180 then
  48.     game.ReplicatedStorage.RankTagOn:FireServer()
  49.     end
  50. end)
  51.  
  52. script.Parent.MainFrame.SelectionsShow.Settings.HideOff.MouseButton1Click:Connect(function()   
  53.     if game.Players.LocalPlayer:GetRankInGroup(4654305) >= 180 then
  54.     game.ReplicatedStorage.RankTagOff:FireServer()
  55.     end
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement