Advertisement
Sungmingamerpro13

PremiumReward

Jan 6th, 2023
1,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.60 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.            
  7.             Debounce = true
  8.            
  9.             local character = hit.Parent
  10.             local player = game.Players:GetPlayerFromCharacter(character)
  11.            
  12.             if player.MembershipType.EnumType == Enum.MembershipType.Premium then
  13.                 player.Coins.Value = player.Coins.Value + 100
  14.             end
  15.            
  16.             wait(0.5)
  17.            
  18.             Debounce = false
  19.         end
  20.     end
  21. end)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement