Advertisement
4zx16

Award Badge On Click

Mar 29th, 2022 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | Source Code | 0 0
  1. local Services = {
  2.     Click = script.Parent.ClickDetector;
  3.     ID = script.ID.Value;
  4.     BadgeService = game:GetService("BadgeService")
  5. }
  6. --[[
  7.  || 📜 AUTHOR: @4zx16 || AWARD BADGE ON CLICK
  8. ]]
  9. local function ClickMe(player)
  10.     Services.BadgeService:AwardBadge(player.UserId, Services.ID)
  11. end
  12. Services.Click.MouseClick:Connect(ClickMe)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement