How does :FromInstance work using knit?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to get the component class of a SPECIFIC instance and call the “Cycle function based on ATTACHED to that instance”
image

  1. What is the issue? Include screenshots / videos if possible!

I don’t know if I am doing it wrong but I have a “Boss” component that I want to fire functions on from a specific instance. However my component is always equal to nil even though im firing this directly after I have created a boss

image

this is how im getting my component

this is my code in doing so

I am printing because for some odd reason the FromInstance function always returns nil when i try to access the Cycle function.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have tried to look on the component github page about knit util but it’s kinda vague on what I am trying to do, also I couldn’t find anything else about this on the devforum so I decided to post this myself.

2 Likes

As i said i looked on the github page but i was still confused, how would i use it to achieve my goal in this example?

You need to tag the boss for it to be classified under that Component.

hmm that doesnt seem right as i am cloning it
the boss that im cloning already has a tag

And im pretty sure knit automatically updates when a clone is made with the same tag