Hello, this is my second question. I'd like to know why this code doesn't work. So what i'm trying to make is a edit of a animation to main module converter. I'm trying to make it lerp so i don't have to make it do it manually when i run it in the execution bar i get the error attempt to concatenate Instance with string, I'm a decent scripter as well. i made a among us script that got leaked over 100 times due to no protection (rip my privacy :( ) Also here's the code that keeps on erroring
for i,v in pairs(sequence.Parent.Parent:GetDescendants()) do if v.ClassName == 'Motor6D' then if v.Part1 == sequence.Parent.Parent:FindFirstChild(start.Name) or v.Part0 == sequence.Parent.Parent:FindFirstChild(start.Name) then hhhjjjjjihfjjm = v end end end AddLine("clerp("..sequence.Parent.Parent:FindFirstChild(hhhjjjjjihfjjm.Parent.Name):FindFirstChild(hhhjjjjjihfjjm.Name)..","..ConvertCFrame(start.CFrame, true)..",".."0.25,".."false,".."0.25"..")",1)
The addline part for some reason keeps on erroring. I don't know how to fix it either.
It has something to do with the motor6d part. I've tried everything i thought would work. Help would be appreciated.
sequence.Parent.Parent:FindFirstChild(hhhjjjjjihfjjm.Parent.Name):FindFirstChild(hhhjjjjjihfjjm.Name)
returns an instance
AddLine("clerp(".. instance..",".."0.25,".."false,".."0.25"..")",1)
which results in an error bc you cant concat and instance with a string
if you want to add the name (which is a string) of the instance than do
AddLine("clerp(".. instance.Name..",".."0.25,".."false,".."0.25"..")",1)
which is
AddLine("clerp("..sequence.Parent.Parent:FindFirstChild(hhhjjjjjihfjjm.Parent.Name):FindFirstChild(hhhjjjjjihfjjm.Name).Name..","..ConvertCFrame(start.CFrame, true)..",".."0.25,".."false,".."0.25"..")",1)