Hello,
So I’m making a puzzle for my horror game where you need to rotate some pieces that you’ll slowly see an image being formed as you finish the puzzle. Once said pieces are all rotated to where the image is complete, a secret wall will be tweened. Here’s a video of what the puzzle looks like right now (don’t mind the picture lol):
As you see, the pieces themselves rotate fine when clicked on, but once all have been rotated to where the image is complete, the red wall I’m testing this on won’t tween? I tried my best going about this but ended up with a pretty messy small script but I hope it makes sense:
local Model = script.Parent
local RightCorner = Model.RightCorner
local MiddleRight = Model.MiddleRight
local Center = Model.Center
local TopRightCorner = Model.TopRightCorner
local MiddleLeft = Model.MiddleLeft
local CenterBottom = Model.CenterBottom
local CenterTop = Model.CenterTop
local TopLeftCorner = Model.TopLeftCorner
local BottomLeftCorner = Model.BottomLeftCorner
local TweenService = game:GetService("TweenService")
local Wall = game.Workspace.TestWall
local WallTween = TweenService:Create(Wall, TweenInfo.new(8, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {CFrame = Wall.CFrame * CFrame.new(0,-10,0)}) -- How long the Tween lasts
local function Tween()
if RightCorner.Orientation = (-90, 89.99, 0) and MiddleRight.Orientation = (-90, 89.98, 0) and Center.Orientation = (-90, 89.98, 0) and TopRightCorner.Orientation = (-90, 89.98, 0) and MiddleLeft.Orientation = (-90, 89.99, 0) and CenterBottom.Orientation = (-90, 89.98, 0) and CenterTop.Orientation = (-90, 89.99, 0) and TopLeftCorner.Orientation = (-90, 89.99, 0) and BottomLeftCorner = (-90, 89.98, 0) then
wait(1)
WallTween:Play()
script:Destroy()
end
end
RightCorner:GetPropertyChangedSignal("Orientation"):Connect(Tween)
MiddleRight:GetPropertyChangedSignal("Orientation"):Connect(Tween)
Center:GetPropertyChangedSignal("Orientation"):Connect(Tween)
TopRightCorner:GetPropertyChangedSignal("Orientation"):Connect(Tween)
MiddleLeft:GetPropertyChangedSignal("Orientation"):Connect(Tween)
CenterBottom:GetPropertyChangedSignal("Orientation"):Connect(Tween)
CenterTop:GetPropertyChangedSignal("Orientation"):Connect(Tween)
TopLeftCorner:GetPropertyChangedSignal("Orientation"):Connect(Tween)
BottomLeftCorner:GetPropertyChangedSignal("Orientation"):Connect(Tween)
This is a script from another puzzle where if you had 2 braziers with their fire particle enabled, then a gate would tween just that I tried changing things to orientation here. I’d appreciate your help on this as I’m almost done with the puzzle!
