i just want to make a escape game and i used local script and still not working for only 1 client who break the door with pickaxe
local boom = workspace.Doors["MEME Boom Effect"]
function ontouch(hit)
if hit.parent.Name == workspace.Doors.ToolRequired.Value then
boom:Play()
script.Parent.t.Anchored = false
wait(0.3)
script.Parent.l.Anchored = false
wait(1)
script.Parent.Anchored = false
end
end
workspace.Doors.Touched:Connect(ontouch)

1 comment
i try to make only on client and its working but the player can touch the door to unanchor without tool and idk what to do to repair this