Advertisement
Sungmingamerpro13

TitlesMenu (STORY GAME)

Nov 21st, 2024 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.13 KB | None | 0 0
  1. local TitlesEvent = game.ReplicatedStorage.TitlesEvent
  2. local TitlesButton = script.Parent.TitlesButton
  3. local TitlesFrame = script.Parent.TitlesFrame
  4. local Info = TitlesFrame.Info
  5.  
  6. TitlesButton.MouseButton1Click:Connect(function()
  7.     TitlesFrame.Visible = not TitlesFrame.Visible
  8. end)
  9.  
  10. local player = game.Players.LocalPlayer
  11. local VIPGamepass = (0)
  12.  
  13. TitlesFrame.PremiumButton.MouseButton1Click:Connect(function()
  14.     Info.nameLabel.Text = TitlesFrame.PremiumButton.TitleName.Value
  15.     if player.MembershipType == Enum.MembershipType.Premium then
  16.         TitlesEvent.PremiumEvent:FireServer(player)
  17.     end
  18. end)
  19.  
  20. TitlesFrame.NoviceButton.MouseButton1Click:Connect(function()
  21.     Info.nameLabel.Text = TitlesFrame.NoviceButton.TitleName.Value
  22.     player.Wins.Value = "0"
  23.     if player.Wins.Value >= 0 then
  24.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  25.         TitlesEvent.NoviceEvent:FireServer(player)
  26.     end
  27. end)
  28.  
  29. TitlesFrame.RookieButton.MouseButton1Click:Connect(function()
  30.     Info.nameLabel.Text = TitlesFrame.RookieButton.TitleName.Value
  31.     player.Wins.Value = "1"
  32.     if player.Wins.Value >= 1 then
  33.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  34.         TitlesEvent.RookieEvent:FireServer(player)
  35.     end
  36. end)
  37.  
  38. TitlesFrame.VisitorButton.MouseButton1Click:Connect(function()
  39.     Info.nameLabel.Text = TitlesFrame.VisitorButton.TitleName.Value
  40.     player.Wins.Value = "2"
  41.     if player.Wins.Value >= 2 then
  42.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  43.         TitlesEvent.VisitorEvent:FireServer(player)
  44.     end
  45. end)
  46.  
  47. TitlesFrame.CitizenButton.MouseButton1Click:Connect(function()
  48.     Info.nameLabel.Text = TitlesFrame.CitizenButton.TitleName.Value
  49.     player.Wins.Value = "5"
  50.     if player.Wins.Value >= 5 then
  51.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  52.         TitlesEvent.CitizenEvent:FireServer(player)
  53.     end
  54. end)
  55.  
  56. TitlesFrame.PackagerButton.MouseButton1Click:Connect(function()
  57.     Info.nameLabel.Text = TitlesFrame.PackagerButton.TitleName.Value
  58.     player.Wins.Value = "10"
  59.     if player.Wins.Value >= 10 then
  60.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  61.         TitlesEvent.PackagerEvent:FireServer(player)
  62.     end
  63. end)
  64.  
  65. TitlesFrame.NeighborButton.MouseButton1Click:Connect(function()
  66.     Info.nameLabel.Text = TitlesFrame.NeighborButton.TitleName.Value
  67.     player.Wins.Value = "20"
  68.     if player.Wins.Value >= 20 then
  69.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  70.         TitlesEvent.NeighborEvent:FireServer(player)
  71.     end
  72. end)
  73.  
  74. TitlesFrame.ChampionButton.MouseButton1Click:Connect(function()
  75.     Info.nameLabel.Text = TitlesFrame.ChampionButton.TitleName.Value
  76.     player.Wins.Value = "35"
  77.     if player.Wins.Value >= 35 then
  78.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  79.         TitlesEvent.ChampionEvent:FireServer(player)
  80.     end
  81. end)
  82.  
  83. TitlesFrame.LandLordButton.MouseButton1Click:Connect(function()
  84.     Info.nameLabel.Text = TitlesFrame.LandLordButton.TitleName.Value
  85.     player.Wins.Value = "50"
  86.     if player.Wins.Value >= 50 then
  87.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  88.         TitlesEvent.LandLordEvent:FireServer(player)
  89.     end
  90. end)
  91.  
  92. TitlesFrame.BeastButton.MouseButton1Click:Connect(function()
  93.     Info.nameLabel.Text = TitlesFrame.BeastButton.TitleName.Value
  94.     player.Wins.Value = "80"
  95.     if player.Wins.Value >= 80 then
  96.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  97.         TitlesEvent.BeastEvent:FireServer(player)
  98.     end
  99. end)
  100.  
  101. TitlesFrame.WinnerButton.MouseButton1Click:Connect(function()
  102.     Info.nameLabel.Text = TitlesFrame.WinnerButton.TitleName.Value
  103.     player.Wins.Value = "200"
  104.     if player.Wins.Value >= 200 then
  105.         Info.WinsAmount.Text = player.Wins.Value.." WINS"
  106.         TitlesEvent.WinnerEvent:FireServer(player)
  107.     end
  108. end)
  109.  
  110. TitlesFrame.VIPButton.MouseButton1Click:Connect(function()
  111.     Info.nameLabel.Text = TitlesFrame.VIPButton.TitleName.Value
  112.     if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, VIPGamepass) then
  113.         Info.WinsAmount.Text = "150 ROBUX"
  114.         TitlesEvent.VIPEvent:FireServer(player)
  115.     end
  116. end)
  117.  
  118. TitlesFrame.NoneButton.MouseButton1Click:Connect(function()
  119.     Info.nameLabel.Text = TitlesFrame.NoneButton.TitleName.Value
  120.     if player.Wins.Value >= 0 then
  121.         Info.WinsAmount.Text = player.Wins.Value
  122.         TitlesEvent.NoneEvent:FireServer(player)
  123.     end
  124. end)
  125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement