What do you want to achieve?
I want to know if it is possible to Tween the C1 property of a Motor6D.
What is the issue? Include screenshots / videos if possible!
It will throw errors such as Unable to cast to Dictionary.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried looking at DevForum altough have not found anything that asks the same question.
Here is my current code used and called when the value of Open changes. (Not done yet, just wanted to experiment. It should change the Position value of the C1 property in a Motor6d
local TweenService = game:GetService("TweenService")
local Doors = script.Parent
local info = TweenInfo.new(0.6,Enum.EasingStyle.Cubic,Enum.EasingDirection.In,0,false,0)
local Tween = TweenService:Create(Doors.Pivot.Motor.C1,info, {Position = 0.5,0,0.3})
function Changed()
if script.Parent.Open.Value == true then
print("twen")
Tween:Play()
end
end
script.Parent.Open.Changed:Connect(Changed)
Alright, Iām sorry, I am not so experienced in tweens. I am starting to learn it, thank you for telling me that you only can tween objects. I will consider your script and reply if I get any other issues.
Hello, I tried to apply your changes and it gives me an error āTweenService:Create no property named āCFrameā for object āMotorāā. Do you have any idea of what the problem might be?