Advertisement
Guest User

BC

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1.  
  2. --[[
  3. LocalScript - MainScript ~ Testing okay then
  4. --]]
  5. --
  6. repeat wait() until game.Players.LocalPlayer.Character
  7. --
  8. local Players = game:GetService("Players");
  9. local ReplicatedStorage = game:GetService("ReplicatedStorage");
  10. --
  11. local AdminButton = script.Parent.FirstPage:WaitForChild("AdminButton");
  12. local StartButton = script.Parent.FirstPage:WaitForChild("StartButton");
  13. local CreditText = script.Parent.FirstPage:WaitForChild("CreditText");
  14. local UselessTextLabel = script.Parent.FirstPage:WaitForChild("TextLabel");
  15. local EconomyFolder = script.Parent.Economy;
  16. local RemoteFolder = ReplicatedStorage:WaitForChild("BookingRemote")
  17. local userName = RemoteFolder:WaitForChild("userName");
  18. local EconomyBook = {}
  19.  
  20. ---
  21.  
  22. function CheckHighRankPlayer(Player,...)
  23. if Player:GetRankInGroup() == 244 then
  24. return true
  25. else
  26. return false
  27. end
  28. end
  29.  
  30.  
  31.  
  32. StartButton.MouseButton1Down:Connect(function()
  33.  
  34. if CheckHighRankPlayer(Players.LocalPlayer) == true then
  35. print("Player is a high rank in JetMaui");
  36. else
  37. print("Player is not a high rank in JetMaui");
  38. local VisibleThings = script.Parent:WaitForChild("FirstPage"):GetChildren()
  39. for i = 1,#VisibleThings do
  40. VisibleThings[i].Visible = false
  41. wait()
  42. end
  43. local VisibleThings2 = EconomyFolder:GetChildren();
  44. for i = 1,#VisibleThings2 do
  45. VisibleThings2[i].Visible = true
  46. end
  47. end
  48. end)
  49.  
  50.  
  51.  
  52.  
  53. EconomyFolder.BookingButton.MouseButton1Click:Connect(function()
  54. if #EconomyBook == 1 then
  55. EconomyFolder.BookingButton.Text = "You all ready booked in!"
  56. wait(2)
  57. EconomyFolder.BookingButton.Text = "Book"
  58. else
  59. EconomyBook[#EconomyBook + 1] = Players.LocalPlayer.Name
  60. print("Economy")
  61. userName:FireServer("Economy");
  62. end
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement