Here's the error:
Players.VipDanT.PlayerGui.Game.Badges.MainBadges.Script:4: attempt to index nil with 'UserHasBadgeAsync'
Here's the code:
local player = game.Players.LocalPlayer
local gmt = script.Parent["Game Monster"]
if player:UserHasBadgeAsync(function(text)
gmt.Text = "Joshua - He doesn't like visitors staying too long"
end) then
end
I'm trying to make it so that if you own the badge, the text changes to gmt.text, however it is not working. anyone know why?

1 comment
it's a normal script if your wondering