I have a brick part on top of the npc’s head and when I run the game the npc moves but the brick stays still,
Is the brick welded to the actual NPC?
Use a weldconstraint.
30 characters
Try doing it an accessory. If you do not how to do this here is a tutorial:
Don’t forget to mark this as the solution,
Theyoloman1920
Can I do this without the 2 getting stuck in each other. The part is an npc killbrick and I want it above the head but if I use the weld constraint they get stuck with eachother and the npc cant move.
Are you sure you’re using a WeldConstraint and not a Weld? If you are, what is Part0 and Part1 assigned to?
At first, I assigned part0 (the brick) to part 1 the head but hat binds them together and npc cant move, and then I assigned part1 to an invisible hat but that didnt work either
Is the kill-brick anchored?
(30chars)
Yes it is anchored
WaitI just unanchored it and it worked
There you have it lol, glad I could help.
Yeah that fixed the problem, thanks.
Now I have a different problem, the part used to fall when you jump on it but now that I jump on it, it doesn’t fall.
You could destroy the weld when the Part.Touched event fires
Sorry, what would I have to write for it to destroy the weldconstraint upon part.touched?
Can you please provide me with the hierarchy of your workspace and a picture of the code which kills the player when touched.
Also, is the Kill-Brick code in a server or local script?
Actually instead of a picture of the hierarchy, where is the WeldConstraint located? Is it parented to the Kill-Brick? Or the NPC?
The killbrick is located inside the npc and the WeldConstraint is inside the killbrick, the part0 is the killbrick and the part1 is the head, do I change any locations?
It should be fine, what’s the name of the Kill-Brick and NPC in the explorer?