When you press F, you get a badge.
When I test in game. I get : https://gyazo.com/a509734878979cc0da418098c8ade4f8
I’d like to know what I’ve done wrong.
local userInputService = game:GetService("UserInputService")
local badgeservice = game:GetService("BadgeService")
local ID = 2124639051
userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.F then
badgeservice:AwardBadge(plr.UserId,id)
end
end
end)