#repost because i never got an answer

1 messages · Page 1 of 1 (latest)

ocean crescent
#

i cant anymore bro this is driving me fucking crazy i tried learning this months ago to no avail
tried again today and it just WONT WORK!!!!
i have this stupid ass model where both of those gray parts are welded to the red part via weldconstraint (the red part is set as the model's primarypart)

i have a clickdetector which tweens the primarypart's cframe to go upwards but GUESS WHAT!! ONLY THE PRIMARYPART MOVES AND THE OTHER PARTS STAY STATIC!!!!!!! AND THEYRE UNANCHORED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ive also tried with normal welds in case weldconstraints were the issue but that didnt work

clickdetector script:

local center = workspace.dumbstupidihateyou.PrimaryPart
local ts = game:GetService("TweenService")

script.Parent.MouseClick:Connect(function()
    ts:Create(center, TweenInfo.new(3, Enum.EasingStyle.Linear), {CFrame = center.CFrame + Vector3.new(0, 5, 0)}):Play()
end)

tldr: tweening model wont work even though welds are set up correctly, primarypart anchored other parts unanchored

flint pond
#

You do know that tweens only work on the selected part right?

#

You can only tween every part individually and play them at the same time since you can't tween a model

ocean crescent
#

if you had to tween each part individually thatd be wildly unoptimized

loud swallow
#

It moves the primary part to the position and the rest move along

ocean crescent
#

yeah but moveto is instant

flint pond
#

Hu

#

1 sec

ocean crescent
#

and you cant tween a moveto because tweens take properties in the third parameter

loud swallow
#

Right

#

Idk how then

flint pond
#

Lol

#

Weds dont work btw

daring siloBOT
#

studio** You are now Level 8! **studio

ocean crescent
# flint pond Weds dont work btw

they do, ive seen multiple devforum posts and videos showcasing welds to tween models so thats why im confused why it doesnt work for me

#

the videos show it working flawlessly then i try and it just. doesnt work

flint pond
#

Gpt saves the day again!

#

local model = workspace:WaitForChild("dumbstupidihateyou")
local ts = game:GetService("TweenService")

-- Create a "fake" ValueObject to tween
local fakeValue = Instance.new("CFrameValue")
fakeValue.Value = model:GetPrimaryPartCFrame()

-- Target CFrame (5 studs up)
local goalCFrame = fakeValue.Value + Vector3.new(0, 5, 0)

local tween = ts:Create(fakeValue, TweenInfo.new(3, Enum.EasingStyle.Linear), {Value = goalCFrame})

-- On each frame, update the model position
fakeValue:GetPropertyChangedSignal("Value"):Connect(function()
model:SetPrimaryPartCFrame(fakeValue.Value)
end)

script.Parent.MouseClick:Connect(function()
tween:Play()
end)

#

Heres an example

ocean crescent
#

dude

flint pond
#

Im not fully sure why this works tho so imma do some research

ocean crescent
#

r u deadass just sending chatgpt code

#

bro 🥀

flint pond
#

🌹

#

Glad you can read