Advertisement
vendaskOfficial

ButtonSystem

Dec 15th, 2018
9,938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. --i hope ur happy
  2. local repStorage = game:GetService("ReplicatedStorage")
  3. local remote = repStorage:FindFirstChild("ButtonClick")
  4.  
  5. remote.OnServerEvent:Connect(function(plr, x)
  6.     --remove this part if you dont want a multiplier game pass
  7.     if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.userId, 0000000) then
  8.         x.Value = x.Value + ((1 * (plr.leaderstats.Rebirths.Value + 1)) * 2) -- change the "2" to the multiplying number
  9.     else
  10.     --remove this part if you dont want a multiplier game pass
  11.         x.Value = x.Value + (1 * (plr.leaderstats.Rebirths.Value + 1))
  12.     end --remove this if you dont want a multiplier gamepass
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement