now this is the script
local debounce = false
function onTouch(hit)
if hit == nil then return end
if hit.Parent == nil then return end
if not game.Workspace:FindFirstChild("Home"..hit.Parent.Name) then
if game.Players:findFirstChild(hit.Parent.Name) ~= nil and debounce == false then
debounce = true
local b = script.Parent.Parent:Clone()
b.Parent = game.Lighting
b.Name = "Home"..hit.Parent.Name
wait(.4)
script.Parent.Parent.Ay.Value = hit.Parent.Name
script.Parent.Head:Remove()
script.Parent.Parent["Home: Nobody"].Name = "Home: "..hit.Parent.Name
script.Parent.Parent.Parent.Name = "Home"..hit.Parent.Name
end
else
end
wait(3)
debounce = false
end
script.Parent.Head.Touched:connect(onTouch)
how do I make this a local script so it works on filtering enabled

1 comment
Also, I assumed you already made a remotefunction. I like doing that.