How can i weld them on tweening


화면 캡처 2024-04-05 083456

I welded with primarypart but it doesn’t work

Client Script

local LatPullDown = {
PullGrip = TweenService:Create(Rope, TweenInfo.new(1), {Position = Vector3.new(16.717, 7.257, -21.48)}),
PullWeight = TweenService:Create(Rope.Parent.MovingWeights.PrimaryPart, TweenInfo.new(1), {Position = Vector3.new(16.719, 8.509, -24.449)}),

DownGrip = TweenService:Create(Rope, TweenInfo.new(2), {Position = Vector3.new(16.717, 8.986, -21.48)}),
DownWeight = TweenService:Create(Rope.Parent.MovingWeights.PrimaryPart, TweenInfo.new(1), {Position = Vector3.new(16.719, 7.319, -24.449)}),

}```

Server Script
NowWeight:GetPropertyChangedSignal(“Value”):Connect(function()
if Debounce then
return
else
Debounce = true
Pin:MoveTo(NowWeight.Value.Pin.WorldPosition)
Sound:Play()

		for _, weld in pairs(Welds) do
			if weld then
				weld:Destroy()
			end
		end
		
		for _, x in pairs(MovingWeights:GetChildren()) do
			x.Parent = Weights
		end
		
		for _, v in pairs(Weights:GetChildren()) do
			if tonumber(v.Name) <= tonumber(NowWeight.Value.Name) then
				v.Color = ActiveColor
				v.Parent = MovingWeights
				
				local Weld = Instance.new("WeldConstraint", v)
				Weld.Part0 = PrimaryPart
				Weld.Part1 = v
				table.insert(Welds, Weld)
			else
				v.Parent = Weights
				v.Color = DectiveColor
			end
		end
		
		task.wait(0.5)
		Debounce = false
	end
end)

Why not just use Motor6Ds and animate the handle, with the arms together, assuming the rope is a ropeconstraint

1 Like

Could you please let me how?
aaaaaaaaaaaaaaaaaaaaaaa

There’s a guide on how to animate parts in tools. You can implement the same concept by having motor 6ds with the handle and the torso. You’ll be able to animate freely and do a pull down animation with the lat pull down machine

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.