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

How do I make an NPC put in ServerStorage not die?

Asked by 8 years ago

When I clone an NPC into ServerStorage and take it out, it falls apart and dies. How do I fix this? I haven't worked with NPCs before so this might be some stupid question, but I'm learning and need some help for a game I've been working on. Please help! Thanks!

When I DO get it to work, this is what happens when the NPC is cloned and spawned... http://gyazo.com/72c9aa7a137de5f815d1aa5e163babcd

0
Use MakeJoints before setting the NPC's parent to Workspace when you clone it. If that doesn't work, put MakeJoints after parenting the NPC clone to Workspace. Spongocardo 1991 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

First of please try using premade NPC's and then cloning it using:

some_variable = game:GetService("ServerStorage").NPC:Clone()
some_variable.Parent = workspace

and if the problem persists, then talk to us again. Otherwise, you might want to check on your NPC making skills, and use the wiki. The wiki is your friend!

Ad

Answer this question