hi im making an emote for my game, and this weird thing happens, i try every physics to make like a cable/tube for my emote, but every method tries to connect to the other attachmente part.
something like this
the model clones itself in a script, and the rope/ballsocket/rod comes with the model, do i have to make the tube inside of the script?
local module = {}
local gasoline = game:GetService("ServerStorage").MainStorage.ItemsToClone.EmotesGarbage.Gas
function module.Act(Animationtrack: AnimationTrack, char: Model)
if Animationtrack.IsPlaying then
local new = gasoline:Clone()
new.Parent = char
new.PrimaryPart.CFrame = char:FindFirstChild("Right Arm").CFrame
for i, v in pairs(new:GetDescendants()) do
if v:IsA("MeshPart") or v:IsA("Part") or v:IsA("UnionOperation") then
v.CanCollide = false
v.Massless = true
v.Anchored = false
end
end
local weld = Instance.new("Motor6D", char:FindFirstChild("Right Arm"))
weld.Part0 = char:FindFirstChild("Right Arm")
weld.Part1 = new.Handle
weld.C0 = CFrame.new(0.04, -1.09, -0.549) * CFrame.Angles(math.rad(-90), math.rad(180), 0)
task.spawn(function()
while wait() do
if not Animationtrack or not Animationtrack.IsPlaying then
weld:Destroy()
new:Destroy()
break
end
end
end)
end
end
return module