Advertisement
4zx16

Badge Only Tool

Jun 8th, 2022 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. --[[
  2.  || πŸ“œ AUTHOR: @4zx16 || BADGE ONLY TOOL || CHANGE BADGE ID
  3. ]]
  4. local BadgeService = game:GetService("BadgeService")
  5. local RS = game:GetService("ReplicatedStorage")
  6. local Storage = game:GetService("ServerStorage")
  7. local BADGE_ID = 0
  8. --[[
  9. ---------------------------------------------------------------------
  10.                       VARIABLES:
  11. ----------------------------------------------------------------------
  12. --]]
  13. game.Players.PlayerAdded:Connect(function(player)
  14.     if BadgeService:UserHasBadgeAsync(player.UserId, BADGE_ID) then
  15.        
  16.         -- IF PLAYER HAS BADGE --
  17.         RS.Name:Clone().Parent = player:WaitForChild("StarterGear")
  18.         RS.Name:Clone().Parent = player:WaitForChild("Backpack")
  19.         -- IF PLAYER HAS BADGE --
  20.     end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement