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

How would you pass a non player argument through a :ClientFired()?

Asked by 5 years ago
Edited 5 years ago

I am relativity new to Filtering Enabled. I have ran into a problem with a script of mine:

  --Client Script
script.Parent.OnHumanoidAnim.OnClientEvent:Connect(function(plr, hum)

local animation = script.Parent.Animation

local Play = hum.Parent:FindFirstChild("Humanoid"):LoadAnimation(animation)

Play:Play()

end)

And

--Portion of the Server Script. It is long.
script.Parent.OnHumanoidAnim:FireClient(hit.Parent:FindFirstChild("Humanoid"))
0
It's a tuple of arguments that the OnClientEvent function receives, excluding the player argument. The arguments fired by FireClient() must also be in the receiving function. DeceptiveCaster 3761 — 5y

Answer this question