function onTouch(part)
if script.Parent.Parent:FindFirstChild("Flashlight") -- i think the error line
then
game.Workspace.Door.CanCollide = false
end
end
script.Parent.Touched:connect(onTouch)
0
I think it would be better if when you equip your flashlight it can CanCollide = false by the client of courseSt_vnC330— 4y