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

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

Asked by
hellmatic 1523 Moderation Voter
6 years ago
Edited 6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
NPC.Humanoid.Died:connect(function()
    [remotelocationhere].REMOTENAME:FireAllClients()
end)

[remotelocation].OnClientEvent:connect(function()
[insert animation ids]
animation:Play()
0
I tried this, I get a error in the Server Log saying, "OnClientEvent can only be used on the client" hellmatic 1523 — 6y
Ad

Answer this question