Why won't my event fire? There are no errors. It's supposed to check if it's a decal, if it is then it will fire the event.
local rs = game:GetService('ReplicatedStorage') local event = rs.AdChange script.Parent.MouseButton1Click:Connect(function(plr) local id = script.Parent.Parent.IDBox.Text if game:GetService('MarketplaceService'):GetProductInfo(id).AssetTypeId == 1 then event:FireServer(id) end end)