I am EXTREMELY new to scripting. Like I started this morning. I have two parts that make up a door in different positions, open and closed (They are named as such) and when a player presses e, I want one to turn invisible and be able to walk through with the other appears and turns unable to walk through. Does that make sense?
The script is as follows:
Close = script.Parent.Close
Open = script.Parent.Open
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(k)
if k == "e" then
game.Workspace.Close.Transparency = 1
game.Workspace.Close.CanCollide = false
game.Workspace.Open.Transparency = 0
game.Wrokspace.Open.CanCollide = true
if game.Workspace.Close.Transparency = 1 then
game.Workspace.Close.Transparency = 0
game.Workspace.Close.CanCollide = true
game.Workspace.Open.Transparency = 1
game.Workspace.Open.CanCollide = false
end
end
end
end
Like I said, I am not even sure any of this is for the right function. I am fairly certain the issue lies the in the game.Workspace.Open. I don't think those are the right terms for my desired object.

3 comments
ruben wth are you doing
Ruben what do you mean? Or are u just being an idiot?
You spelled 'workspace' incorrectly on line 2