Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataStoreService = game:GetService("DataStoreService"):GetDataStore("Lives")
- local Debounce = false
- script.Parent.Touched:Connect(function(Hit)
- if Debounce == false then
- Debounce = true
- local Character = Hit.Parent
- local player = game.Players:GetPlayerFromCharacter(Character)
- DataStoreService:IncrementAsync(player.UserId, 5)
- wait(5)
- Debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement