Feugazi
(Feugazi)
#1
Hi guys,
Currently in my game I use NPCs for tutorials. I want to make it so that players cannot walk into the NPCs and move them, like this:
https://gyazo.com/22fb666d31a9592fea75f89170c80cf9
I can’t set them to anchored because they are animated, and they also move around the map some.
I have also tried setting CanCollide = false
on them aswell, but it does not seem to help.
If anyone can give me any insight on this, please do! Any help gets me moving in the right direction.
3 Likes
Anchor a part that’s not being animated
2 Likes
heII_ish
(heII_ish)
#3
Anchor the rootpart when the npc is standing still and unanchor it when you need the npc to move
2 Likes
Feugazi
(Feugazi)
#4
It seems that Anchoring any part of the NPC stops all animations from happening.
@DoctorNO2106
I am using the Animate script so it runs all animations that the character has.
1 Like
New_Item
(Haydebug)
#5
You should be able to anchor the HumanoidRootPart to prevent this behavior without anything breaking.
2 Likes
Feugazi
(Feugazi)
#6
That does not seem to be working for me.
This is without it being anchored.
https://gyazo.com/55705ec601cc8c86b1c81c2eeba7436a
This is with the HRP being anchored.
https://gyazo.com/cfbbca76a7d1f73d93b6eaa0739914b0
It seems to still be slightly moving, like a breathing animation is playing, but for the most part the NPC is just stuck in that pose.
1 Like
That’s weird, I did the exact same thing for a dancing npc and it worked
2 Likes
if you can’t anchor the humanoidrootpart, then you can enable CustomPhysicalProperties on it and set the density to 100
8 Likes