Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't my remoteevent firing?

Asked by 5 years 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 61 — 5y

Answer this question