So, every time I click the curtain, it keeps rotation (I don't know much about rotations). my code:
local s = script.Parent
local switch = true
s.ClickDetector.MouseClick:connect(function()
if switch == true then
switch = false
s.Rotation = Vector3.new(0, 90, 0)
s.Size = Vector3.new(15.216, 8.503, 0.2)
s.CFrame = CFrame.new(10.1, 8.25, -54.408)
elseif switch == false then
switch = true
s.Rotation = Vector3.new(0, 90, 0)
s.Size = Vector3.new(2.416, 8.503, 0.2)
s.CFrame = CFrame.new(10.1, 8.25, -54.408)
end
end)
Thanks for the help :)

1 comment
Thanks so much!