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

How do i make a script that moves a model to workspace when a certain NPC has died?

Asked by 2 years ago

im very new at scripting so please tell me how to do this

1 answer

Log in to vote
1
Answered by 2 years ago

You need to connect the npc died event to a function like this

local model = game.ReplicatedStorage.Model
workspace.Npc.Humanoid.Died:Connect(function()
    model.Parent = workspace
end)

this is just an example of how you could do it.

Ad

Answer this question