Code:
if not (self.Hosted[jackpot] and self.Hosted[jackpot][player]) and not item.Locked and item.Amount >= amount and found then
local Player = Jackpot:GatherFullTemplate(player, self.Hosted[jackpot], item, amount)
if not Player then
return
end
self.Hosted[jackpot][player] = Player;
Jackpot:NotifyClient(player, "Added!")
self.Hosted[jackpot][player].Total = Jackpot:GetTotal(self.Hosted[jackpot][player].Items)
self.Hosted[jackpot][player].Chance = Jackpot:Chance(self.Hosted[jackpot].Total, self.Hosted[jackpot][player].Total)
end
self.Hosted[jackpot] is returning nil but it does exist. Jackpot is server, so it’s really just self.Hosted.Server which does exist, but it is returning nil, and still passes the if statement.