Ok so first, i wanted to make a animation by firing into a player local script, Then The local script will recieve and play it, Now, the problem is it works and is actually recieved only half of the time, And if it does not work first time, then the following will not work, I've added delays, and print statement, Either the server is not sending event in the roblox remote hander sense, or the client is not recieving in the roblox sense, as I debug it using print statement the line before and after firing remote, and the line after reciving, some times only the server prints
CLIENT
game.ReplicatedStorage.Remotes.NCP.PlayAnimNPC.OnClientEvent:Connect(function(uid,name)
print("PLAYING"..name)
if workerArray[uid] == nil then return end
workerArray[uid][4][name] = workerArray[uid][3][name]:Play()
end)
SERVER
local function moveWork(plr,uid,pos,cfg,obj)
--print(WorkerArray)
--print(WorkstationsArray)
local path = game.PathfindingService:CreatePath(agentParameters)
local success, errorMessage = pcall(function()
path:ComputeAsync(WorkerArray[plr.UserId][uid][2], pos)
end)
--warn("C")
task.wait(1)
remotes.NCP.PlayAnimNPC:FireClient(plr,uid,"Walk")
print("PLAYING WALK")
task.wait(1)
--warn("D")