I am trying to make a door when a tool touches it allows you to walk through and the barricades will fall off.
Door Script:
function ontouch(hit)
local Crowbar = hit:findFirstChild("Crowbar")
if Crowbar then
script.Parent.Transparency = 0.6
script.Parent.CanCollide = false
else
print("Script Not Working")
end
end
script.Parent.Touched:Connect(ontouch)
Barricade Script:
function ontouch(hit)
local Crowbar = hit:findFirstChild("Crowbar")
if Crowbar then
script.Parent.Anchored = false
end
end
script.Parent.Touched:Connect(ontouch)

3 comments
Do you know what would be super cool? If you explain w h a t w a s w r o n g
^
^