Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to add hats to players/NPCs?

Asked by 9 years ago

I have a script that clones a hat and inserts it into a player, when I do this the hat falls through the player and through the baseplate. Even if I MakeJoints. Thanks.

local hat = workspace.Hat:Clone()
hat.Parent = workspace.Player

I have multiple hats I want to clone btw. This is also in a game with FilteringEnabled.

0
Not sure, but is the hat CanCollide set to true? Michael007800 144 — 9y
0
Parenting the hats to an entity should be able to work. Redbullusa 1580 — 9y
0
@Michael007800 That shouldn't even matter. All ignorant thoughts and assumptions aside, though, I'll test this out. Redbullusa 1580 — 9y
0
All the hats were in ServerStorage, though. Redbullusa 1580 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

I'm a Newbie at scripting, but I know what you're talking about and it happened to me before. So this is my method of putting hats on an NPC without using a script.

Just get a free model of that hat. In the Explorer, just copy the Part with a mesh and paste it in the Workspace. Then, use the axis tool to drag it in the NPC, and make sure you anchor it.

I hope this helps...even if I'm a Newbie.

0
Well, this NPC needs to Walk. It follows the player's movements, so when the NPC tries to walk it falls off. EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question