b = game:GetService("BadgeService") badges = {150952884} for i = 1, #badges do if b:UserHasBadge(p, badges[i]) then local s = Instance.new("StringValue", servstat) s.Name = tostring(badges[i]) end end
This script returns the error "Unable to cast instanec on int value" on line 5.
This is not the whole script.
It is part of a playeradded script, p is the player.
What am I doing wrong?