You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Setting a highlight instance to only show on NPC character’s body parts when the NPC has a large spherical hitbox inside of it -
What is the issue? Include screenshots / videos if possible!
The highlight instance is appearing on the large spherical hitbox instead of just the NPC’s body parts -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
A. I have thought about adding a highlight instance to each body part individually but that is too many to deal with at the same time as I will be changing the highlight instance’s properties constantly.
B. I have also thought about just keeping the hitbox in workspace rather than under the NPC but I don’t want to have a bunch of these parts lying around in the workspace, and referencing them via script would be a pain as there would be lots of NPC’s with their own hitboxes.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local NPC = script.Parent
local highlightInstance = Instance.new('Highlight', NPC); highlightInstance.FillTransparency = 1; highlightInstance.OutlineTransparency = 0
I want it to look like this: (I did this by just moving the hitbox to workspace)
But it looks like this instead:
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.