I have a problem where the model inside my window doesn't move to the added amount in the brackets. I'm honestly not really sure how I can make it move 1.9/any amount studs up/side/down with the bricks inside the model. Is there a way in order to do that?
Layout of the model:
function Lock()
if script.Parent.Locked.Value == false then
script.Parent.Lock.Position = script.Parent.Lock.Position + Vector3.new(0,0.4,0)
script.Parent.Locked.Value = true
script.Parent.Lock.LockSound:Play()
else
script.Parent.Lock.Position = script.Parent.Lock.Position - Vector3.new(0,0.4,0)
script.Parent.Locked.Value = false
script.Parent.Lock.UnlockSound:Play()
end
end
function FireFunction()
if script.Parent.Open.Value == false then
if script.Parent.Locked.Value == false then
script.Parent.Glass.CFrame = script.Parent.Glass.CFrame - Vector3.new(0,1.9,0)
script.Parent.Frame:MoveTo(Vector3.new(0,-1.9,0))
script.Parent.Glass.OpenClose:Play()
script.Parent.Open.Value = true
end
else
if script.Parent.Locked.Value == false then
script.Parent.Glass.CFrame = script.Parent.Glass.CFrame + Vector3.new(0,1.9,0)
script.Parent.Frame:MoveTo(Vector3.new(0,1.9,0))
script.Parent.Glass.OpenClose:Play()
script.Parent.Open.Value = false
end
end
end
script.Parent.Lock.ClickToLock.MouseClick:Connect(Lock)
script.Parent.Glass.Click.MouseClick:Connect(FireFunction)
I appreciate any help and am willing to learn, just let me know any fixes.

1 comment
Thank you, I learned a bit from that. Sorry for being so late my internet had been cut.