Advertisement
Anukun_Lucifer

ExpUp

May 28th, 2022
5,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local debounce = false
  2.  
  3. script.Parent.Touched:Connect(function(Hit)
  4.     if Hit.Parent:FindFirstChild("Humanoid") then
  5.         if debounce == false then
  6.             debounce = true
  7.            
  8.             local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
  9.             Player.leaderstats.Exp.Value += 10
  10.             wait(1)
  11.             debounce = false
  12.         end
  13.     end
  14. end)
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement