Sungmingamerpro13

RewardBadgeScript

Jun 21st, 2023
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.43 KB | None | 0 0
  1. local BadgeService = game:GetService("BadgeService")
  2. local Tool = game:GetService("ReplicatedStorage"):WaitForChild("Tool") -- Change tool to the name of your tool in replicated storage!
  3. local BadgeId = Your Badge ID here!
  4.  
  5. game.Players.PlayerAdded:Connect(function(player)
  6.     if BadgeService:UserHasBadgeAsync(player.UserId,BadgeId) then
  7.         Tool:Clone().Parent = player.Backpack
  8.         Tool:Clone().Parent = player.StarterGear
  9.     end
  10. end)
Tags: Roblox Reward
Add Comment
Please, Sign In to add comment