Advertisement
Mikowy_Scripter

Untitled

Apr 23rd, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local replicatedStorage = game:GetService("ReplicatedStorage")
  2. local remoteData = game:GetService("ServerStorage"):WaitForChild("RemoteData")
  3.  
  4. replicatedStorage.Remotes.Lift.OnServerEvent:connect(function(player)
  5.  
  6.     print("Fired")
  7.    
  8. '='  if not remoteData:FindFirstChild(player.Name) then return "NoFolder" end
  9.    
  10. local debounce = remoteData[player.Name].debounce
  11.    
  12. '=' if not debounce then
  13.        
  14.     print("Got past the debounce if statement")
  15.        
  16.     debounce.Value = true  
  17.  
  18. end
  19.         player.leaderstats.Strength.Value = player.leaderstats.Strength + 5 * (player.leaderstats.Rebirths.Value + 1)
  20.        
  21.         debounce.Value = false
  22.    end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement