Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer.Character
- --
- local Players = game:GetService("Players");
- local MartketPlace = game:GetService("MarketplaceService");
- local ReplicatedStorage = game:GetService("ReplicatedStorage");
- --
- local FirstScreen = script.Parent:WaitForChild("FirstScreen");
- local SecScreen = script.Parent:WaitForChild("SecScreen");
- local LoadingScreen = script.Parent:WaitForChild("LoadingScreen");
- local RemoteFolder = ReplicatedStorage:WaitForChild("Remotes");
- local SetNameF = RemoteFolder:WaitForChild("setName");
- local giveCard = RemoteFolder:WaitForChild("giveCard")
- --
- function Player(peep,PlayerObject,...)
- if peep == "poop" then -- testing ovb lol
- if PlayerObject:GetRankInGroup(3490896) <= 251 then -- its 251 (testing 252)
- return true
- else
- return false
- end
- end
- end
- FirstScreen.StartButton.MouseButton1Click:Connect(function(plr)
- if Player("poop",Players.LocalPlayer) == true then
- print(Players.LocalPlayer.Name.." is a high rank")
- SetNameF:InvokeServer("!!!!!!!",game.Players.LocalPlayer.Name.." | "..game.Players.LocalPlayer:GetRoleInGroup(3490896))
- giveCard:FireServer("Economy")
- LoadingScreen.Visible = true
- wait(4)
- LoadingScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- SecScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- FirstScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- script.Parent.Parent.SelfCheckIn:Destroy()
- else
- SecScreen.Visible = true
- print("Is not 251 or higher")
- end
- end)
- SecScreen.Economy.MouseButton1Click:Connect(function()
- SetNameF:InvokeServer("!!!!!!!",game.Players.LocalPlayer.Name.." | ".."Economy Class")
- giveCard:FireServer("Economy")
- SecScreen.Visible = true
- LoadingScreen.Visible = true
- wait(4)
- LoadingScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- SecScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- FirstScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- script.Parent.Parent.SelfCheckIn:Destroy()
- end)
- SecScreen.Residence.MouseButton1Click:Connect(function()
- if MartketPlace:PlayerOwnsAsset(game.Players.LocalPlayer,1069595559) then
- SetNameF:InvokeServer("!!!!!!!",Players.LocalPlayer.Name.." | ".."Residence")
- giveCard:FireServer("Residence")
- LoadingScreen.Visible = true
- wait(4)
- LoadingScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- SecScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- FirstScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- script.Parent.Parent.SelfCheckIn:Destroy()
- else
- MartketPlace:PromptPurchase(Players.LocalPlayer,1069595559)
- end
- end)
- SecScreen.Business.MouseButton1Click:Connect(function()
- if MartketPlace:PlayerOwnsAsset(game.Players.LocalPlayer,1077643497) then
- SetNameF:InvokeServer("!!!!!!!",Players.LocalPlayer.Name.." | ".."Business Class")
- giveCard:FireServer("Business Class")
- LoadingScreen.Visible = true
- wait(4)
- LoadingScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- SecScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- FirstScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- script.Parent.Parent.SelfCheckIn:Destroy()
- else
- MartketPlace:PromptPurchase(Players.LocalPlayer,1077643497)
- end
- end)
- SecScreen.FirstClass.MouseButton1Click:Connect(function()
- if MartketPlace:PlayerOwnsAsset(game.Players.LocalPlayer,1069588967) then
- SetNameF:InvokeServer("!!!!!!!",Players.LocalPlayer.Name.." | ".."First Class")
- giveCard:FireServer("First Class")
- LoadingScreen.Visible = true
- wait(4)
- LoadingScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- SecScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- FirstScreen:TweenPosition(UDim2.new(1.272, 10000,0.189, 0))
- script.Parent.Parent.SelfCheckIn:Destroy()
- else
- MartketPlace:PromptPurchase(Players.LocalPlayer,1069588967)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement