#having trouble with tweening this chest lid
1 messages · Page 1 of 1 (latest)
i can show images or how i have it setup in my script
this is the state my chest ends in:
local StartCFrame = ChestHinge.CFrame
local Rotation = CFrame.Angles(0,0,math.rad(-90))
local EndCFrame = StartCFrame * Rotation
local ChestLidTweenInfo = TweenInfo.new(0.5)
local ChestLidTweenGoal = {CFrame = EndCFrame}
local ChestLidTween = TS:Create(ChestHinge, ChestLidTweenInfo, ChestLidTweenGoal)
ChestLidTween:Play()
ChestLidTween.Completed:Wait()
this is how i have the code set up
(idk why its formatted like that
and this is a snippet
not gonna lie tweening looks much harder to use
u could use this
set the ActuatorType and specify a targetangle with a angularspeed make the chest open and close