I am attempting for the game to say if a player has a donate pass in a GUI. Here is what I have:
vipItem = 346341127 player = game.Players.LocalPlayer if game:GetService("BadgeService"):UserHasBadge(player.UserId, vipItem) then script.Parent.owns1 = game.Players.LocalPlayer.Name.. "has not donated!" else script.Parent.owns1 = game.Players.LocalPlayer.Name.. "has donated!" end
For some reason, it does not work.
vipItem = 346341127 player = game.Players.LocalPlayer if game:GetService("BadgeService"):UserHasBadge(player.UserId, vipItem) then script.Parent.owns1 = game.Players.LocalPlayer.Name.. " has donated!" else script.Parent.owns1 = game.Players.LocalPlayer.Name.. " has not donated!" end
there wasn't anything wrong you just had it backwards e.e you checked if they had it and if they did you made it seem like they didn't