Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Why isn't my remoteevent firing?

Asked by 2 months ago

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)
0
nvm, it's == 13, also how can i convert a decal id into an image id? TypicallyPacific 36 — 2mo

Answer this question