I'm trying to make this compatible using Filtering Enabled, but i can't seem to get the click detector to respond please help?
wait(0.1)
--Declarations--
local ready = true
local surfacegui = script.Parent.SurfaceGui
local stuff = surfacegui.Frame
local scroll = stuff.ScrollingFrame
local settings = stuff.Settings
local type = settings.SaleType.Value
local shutter = stuff.Shutter
local pos = 0
--Functions--
function coverdown()
shutter.Label.Visible = true
shutter:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 1, true)
end
function coverup()
shutter:TweenPosition(UDim2.new(0, 0,-1.01, 0), "Out", "Sine", 1, true)
shutter.Label.Visible = false
end
--Main function--
script.Parent.ClickDetector.MouseClick:connect(function(player)
if ready == true then
ready = false
script.Parent.ClickDetector.MaxActivationDistance = 0
scroll:ClearAllChildren()
coverup()
for i, v in pairs(settings.Assets:GetChildren()) do
local asset = v.Value
local item = settings.Item:Clone()
item.Parent = scroll
item.Information.Asset.Value = asset
item.What.Text = game:GetService("MarketplaceService"):GetProductInfo(asset, 0).Name
item.Sales.Text = "Sales: "..game:GetService("MarketplaceService"):GetProductInfo(asset, 0).Sales..""
item.Creator.Text = "Creator: "..game:GetService("MarketplaceService"):GetProductInfo(asset, 0).Creator.Name..""
item.Position = UDim2.new(0,0,0,pos)
item.BackgroundColor3 = settings.Color.Value
item.Buy.BackgroundColor3 = settings.Color.Value
item.Visible = true
pos = pos + 78
wait()
item.Buy.MouseButton1Down:connect(function()
game:GetService("MarketplaceService"):PromptPurchase(player,asset,type)
coverdown()
script.Parent.ClickDetector.MaxActivationDistance = 10
wait (5)
ready = true
scroll.CanvasPosition = Vector2.new (0,0)
script.Fixer.Disabled = false
end)
end
end
end)

2 comments
Is it simply not firing the function at all?
Not when i enable Filtering Enabled, it works if i don't enable FE.