Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I play a death animation in a NPC using a RemoteFunction with FilteringEnabled on?

I am new to using RemoteEvents and been trying to play a death animation on a NPC with FilteringEnabled on. How could I do it so that all clients or players can see the animation?

1 answer

NPC.Humanoid.Died:connect(function()
	[remotelocationhere].REMOTENAME:FireAllClients()
end)

[remotelocation].OnClientEvent:connect(function()
[insert animation ids]
animation:Play()

1 comment

0

I tried this, I get a error in the Server Log saying, "OnClientEvent can only be used on the client"

This discussion is preserved as it was. New answers, comments, and votes are closed.