im trying to send data to a local script but whenever i try i get this error on line 8
players.PlayerAdded:Connect(function(player) local stamina = Instance.new("IntValue", player) stamina.Value = maxStamina stamina.Name = "Stamina" stamina.Changed:Connect(function(player) rs.StaminaUpdate:FireClient(player, stamina.Value, maxStamina) end) end)