Just untick the 'CanCollide' property in the properties of the part.
It should look a little like this for an open/close door
local Door = script.Parent --The Part that we are touching function onTouch(Brick) --Sends a message to the brick that it was touched local Player = Brick.Parent:findFirstChild("Humanoid") --Searches for a human if(Player ~= nil) then --If there is a human then.. Door.CanCollide = false --Door opens Door.Transparency = 1 Door is see through Door.BrickColor = BrickColor.new(math.random(), math.random(), math.random()) --Changes colour, just a little fun thing if you want it wait(1.5) --Waits 1 1/2 seconds before it closes Door.CanCollide = true --closes Door.Transparency = 0 --Door is normal again end end Door.Touched:connect(onTouch) --Connects to the onTouch script.
Put this in a script in the part.
while true do script.Parent.CanCollide = false wait(10) -- So it doesn't crash end
Locked by User#2
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?