Advertisement
vendaskOfficial

RebirthSystem

Dec 15th, 2018
5,692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. --its up to you on where to put it
  2. local repStorage = game:GetService("ReplicatedStorage")
  3. local remote = repStorage:FindFirstChild("RebirthClick")
  4.  
  5. remote.OnServerEvent:Connect(function(plr, x)
  6.     if plr.leaderstats.Points.Value >= 100 * (x.Value + 1) then
  7.         x.Value = x.Value + 1
  8.         plr.leaderstats.Points.Value =  0      
  9.     end
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement