Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TitlesEvent = game.ReplicatedStorage.TitlesEvent
- local TitlesButton = script.Parent.TitlesButton
- local TitlesFrame = script.Parent.TitlesFrame
- local Info = TitlesFrame.Info
- TitlesButton.MouseButton1Click:Connect(function()
- TitlesFrame.Visible = not TitlesFrame.Visible
- end)
- local player = game.Players.LocalPlayer
- local VIPGamepass = (0)
- TitlesFrame.PremiumButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.PremiumButton.TitleName.Value
- if player.MembershipType == Enum.MembershipType.Premium then
- TitlesEvent.PremiumEvent:FireServer(player)
- end
- end)
- TitlesFrame.NoviceButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.NoviceButton.TitleName.Value
- player.Wins.Value = "0"
- if player.Wins.Value >= 0 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.NoviceEvent:FireServer(player)
- end
- end)
- TitlesFrame.RookieButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.RookieButton.TitleName.Value
- player.Wins.Value = "1"
- if player.Wins.Value >= 1 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.RookieEvent:FireServer(player)
- end
- end)
- TitlesFrame.VisitorButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.VisitorButton.TitleName.Value
- player.Wins.Value = "2"
- if player.Wins.Value >= 2 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.VisitorEvent:FireServer(player)
- end
- end)
- TitlesFrame.CitizenButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.CitizenButton.TitleName.Value
- player.Wins.Value = "5"
- if player.Wins.Value >= 5 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.CitizenEvent:FireServer(player)
- end
- end)
- TitlesFrame.PackagerButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.PackagerButton.TitleName.Value
- player.Wins.Value = "10"
- if player.Wins.Value >= 10 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.PackagerEvent:FireServer(player)
- end
- end)
- TitlesFrame.NeighborButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.NeighborButton.TitleName.Value
- player.Wins.Value = "20"
- if player.Wins.Value >= 20 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.NeighborEvent:FireServer(player)
- end
- end)
- TitlesFrame.ChampionButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.ChampionButton.TitleName.Value
- player.Wins.Value = "35"
- if player.Wins.Value >= 35 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.ChampionEvent:FireServer(player)
- end
- end)
- TitlesFrame.LandLordButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.LandLordButton.TitleName.Value
- player.Wins.Value = "50"
- if player.Wins.Value >= 50 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.LandLordEvent:FireServer(player)
- end
- end)
- TitlesFrame.BeastButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.BeastButton.TitleName.Value
- player.Wins.Value = "80"
- if player.Wins.Value >= 80 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.BeastEvent:FireServer(player)
- end
- end)
- TitlesFrame.WinnerButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.WinnerButton.TitleName.Value
- player.Wins.Value = "200"
- if player.Wins.Value >= 200 then
- Info.WinsAmount.Text = player.Wins.Value.." WINS"
- TitlesEvent.WinnerEvent:FireServer(player)
- end
- end)
- TitlesFrame.VIPButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.VIPButton.TitleName.Value
- if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, VIPGamepass) then
- Info.WinsAmount.Text = "150 ROBUX"
- TitlesEvent.VIPEvent:FireServer(player)
- end
- end)
- TitlesFrame.NoneButton.MouseButton1Click:Connect(function()
- Info.nameLabel.Text = TitlesFrame.NoneButton.TitleName.Value
- if player.Wins.Value >= 0 then
- Info.WinsAmount.Text = player.Wins.Value
- TitlesEvent.NoneEvent:FireServer(player)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement