im trying to make things more organize by making sound something like a property of the animationTrack even if it isnt
i will need sound to be a child of animationTrack to do that
i already got the animationTrack done and i have a script that automatically loads all the tracks in and put every single track into a table
now im just working on a prototype to find a way to make sound a child of animation
this is what i came up with for prototype which didnt work because either it printed out nil and animation or the table itself(table: 0x4c0c11c7bc45873e) and sound
local Table = { Animation = "Animation" and { Sound = "Sound" } } print(Table.Animation) print(Table.Animation.Sound)
i dont really know what im doing wrong here
i want to achieve something similar to down below where i can reference Sound like a property
AnimationTrack.Animation.Sound AnimationTrack.Animation
You can't make Sound a property and you can make it a child. Why not just parent Sound
to AnimationTrack
?
local sound = workspace.Sound --write where you located your sound local animation = workspace.Animation --same goes to here sound.Parent = animation