script.DoAnim.OnServerEvent:Connect(function(anim,hum) script.ReturnEvent:FireAllClients() local heck = game.Lighting.PlayAnim:Clone() heck.yup.Value = anim heck.Parent = hum.Parent.Humanoid heck.Disabled = false end)
error line 5 'attempt to index field "parent"(a nil value)'
Anim is a nil value. Code correction: script.DoAnim.OnServerEvent:Connect(function(plr,anim,hum)
You are calling the event as anim being the player calling the event. This leaves hum to be the animation. Adding plr and ignoring it will stop the code error.