I have made a simple script to remove something from the game when i touch a block but when i touch the block it tells me LaserGate1 is not a valid member of Workspace even though LaserGate1 is under workspace
function onTouched(hit)
game.Workspace.LaserGate1 = nil
end
script.Parent.Touched:connect(onTouched)

4 comments
Thanks i'm new to scripting
Happy to help :)
Why do you add the parameter "hit"?
you dont have to people just like to do that