Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- LocalScript - MainScript ~ Testing okay then
- --]]
- --
- repeat wait() until game.Players.LocalPlayer.Character
- --
- local Players = game:GetService("Players");
- local ReplicatedStorage = game:GetService("ReplicatedStorage");
- --
- local AdminButton = script.Parent.FirstPage:WaitForChild("AdminButton");
- local StartButton = script.Parent.FirstPage:WaitForChild("StartButton");
- local CreditText = script.Parent.FirstPage:WaitForChild("CreditText");
- local UselessTextLabel = script.Parent.FirstPage:WaitForChild("TextLabel");
- local EconomyFolder = script.Parent.Economy;
- local RemoteFolder = ReplicatedStorage:WaitForChild("BookingRemote")
- local userName = RemoteFolder:WaitForChild("userName");
- local EconomyBook = {}
- ---
- function CheckHighRankPlayer(Player,...)
- if Player:GetRankInGroup() == 244 then
- return true
- else
- return false
- end
- end
- StartButton.MouseButton1Down:Connect(function()
- if CheckHighRankPlayer(Players.LocalPlayer) == true then
- print("Player is a high rank in JetMaui");
- else
- print("Player is not a high rank in JetMaui");
- local VisibleThings = script.Parent:WaitForChild("FirstPage"):GetChildren()
- for i = 1,#VisibleThings do
- VisibleThings[i].Visible = false
- wait()
- end
- local VisibleThings2 = EconomyFolder:GetChildren();
- for i = 1,#VisibleThings2 do
- VisibleThings2[i].Visible = true
- end
- end
- end)
- EconomyFolder.BookingButton.MouseButton1Click:Connect(function()
- if #EconomyBook == 1 then
- EconomyFolder.BookingButton.Text = "You all ready booked in!"
- wait(2)
- EconomyFolder.BookingButton.Text = "Book"
- else
- EconomyBook[#EconomyBook + 1] = Players.LocalPlayer.Name
- print("Economy")
- userName:FireServer("Economy");
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement