new problem, right so
DoorHold = game.Workspace.doorfather.DoorHold
local open=true
local door = script.Parent.Parent
script.Parent.mouseClick:connect(function()
if open then
open=false
door.CFrame = CFrame.new(DoorHold.Position)
door.BrickColor=script.PartkeypadY.Value
else
open=true
door.CFrame = CFrame.new(TargetPosition + Vector3.new(0,10,0))
door.BrickColor=script.PartkeypadX.Value
end
end)
these are photos of where all my stuff is located
i get the error
22:05:58.124 - Stack End 22:06:06.191 - Position is not a valid member of Model 22:06:06.192 - Stack Begin 22:06:06.193 - Script 'Workspace.doorfather.Keypad.Partkeypad.ClickDetector.Script', Line 8

5 comments
What is Doorgay is Doorgay a value or something if not and it is just a name game.Workspace.Doorgay or make it a variable
doorgay is a part that is a door that is supposed to open when you press the button
In that case then do local Doorgay = game.Workspace.Doorgay (considering that is where the part is)
i will reply to you with where all my parts are http://imgur.com/a/mWC37
you should be able to figure it out just do something.something.something(that holds doorgay).Doorgay