Hello,
I have been working on a maze. I have created a template. However, I think it would be really cool if the maze walls moved. Though, I don't know how to move an object, hence why I'm here.
I have been able to rotate an object using the script:
local ts = game:GetService("TweenService")
local part = script.Parent
local info = TweenInfo.new(20, Enum.EasingStyle.Linear, Enum.EasingDirection.Out,-1)
local properties = {CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)}
local tween = ts:Create(script.Parent,info,properties)
tween:Play()
However, moving a block, and keeping it there for a random amount of time, then moving it back, is a little to complex to me.
Here is my template maze: https://cdn.discordapp.com/attachments/356675974928007168/522134507227447316/unknown.png
Any suggestions you can make will be appreciated.

1 comment
This works great. Thanks