My script works on not Filtering Enabled but on Filtering Enabled its not working can i get this script to Filtering Enabled?

local Humanoid = script.Parent.Enemy

function PwntX_X() 
local tag = Humanoid:FindFirstChild("creator") 
    if tag ~= nil then 
        if tag.Value ~= nil then 
local Leaderstats = tag.Value:FindFirstChild("leaderstats") 
            if Leaderstats ~= nil then 
Leaderstats.Kills.Value = Leaderstats.Kills.Value +1
wait(0.1)
script:Destroy()
            end 
        end 
    end 
end 
Humanoid.Died:connect(PwntX_X) 

3 comments

0

How is the tag being set? If its set in a local script it will not replicate.

0

its normal script

0

The script looks fine. Are you receiving any errors, if any? The only reason this script wouldn't work in FE is if it's not a normal script, or if it's being Disabled.