#Tweening with CFrame help
37 messages · Page 1 of 1 (latest)
Oh yeah found it, i didnt make the variable correct for the part
One more question though,
local tweenPart = tweenService:Create(part, tweenInfo, {["CFrame"] = CFrame.new(-4.682, 11.5, -26.812)})
This works, but why doesn't this work:
local tweenPart = tweenService:Create(part, tweenInfo, {["CFrame"] = part.CFrame + CFrame.new(0, 10, 0)})
why you put ["CFrame"]
it doesn't work at all or just tweening to wrong cframe
I was trying different things, still need to fix that
It says: Players.DogeBager.PlayerScripts.LocalScript:18: invalid argument #2 (Vector3 expected, got CFrame)
uhm
Maybe part.CFrame.Position?
** You are now Level 3! **
nah
ah
why tf it says vector3 ;-;
Idfk
local tweenPart = tweenService:Create(part, tweenInfo, {CFrame = part.CFrame + CFrame.new(0, 10, 0)})
it won't work 😭
wth ;-;
maybe
make a variable
local goal = (part.CFrame + CFrame.new(0, 10, 0))
local tweenPart = tweenService:Create(part, tweenInfo, {CFrame = goal})
idk how to help you
cuz this is weird 😭
Damn thanks anyways bro
I finally figured it out
`local goal = (CFrame.new(part.CFrame.X, part.CFrame.Y + 10, part.CFrame.Z))
local tweenPart = tweenService:Create(part, tweenInfo, {CFrame = goal})`
this was it
I think lua doesnt let you add values to cframes
like in the way i tried before